Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit e0a4755

Browse files
committed
Speculative fix for bad merge in gltf branch
1 parent 9cf7fcd commit e0a4755

File tree

7 files changed

+11
-13
lines changed

7 files changed

+11
-13
lines changed

Mafia2Libs/Forms/Docking/DockImportSceneTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private void ApplyImageIndex(TreeNode node)
149149
return;
150150
}
151151

152-
if (node.Tag.GetType() == typeof(FrameObjectJoint))
152+
if (node.Tag.GetType() == typeof(FrameObjectPoint))
153153
node.SelectedImageIndex = node.ImageIndex = 7;
154154
else if (node.Tag.GetType() == typeof(FrameObjectSingleMesh))
155155
node.SelectedImageIndex = node.ImageIndex = 6;

Mafia2Libs/Forms/Docking/DockSceneTree.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ private void ApplyImageIndex(TreeNode node)
266266
return;
267267
}
268268

269-
if (node.Tag.GetType() == typeof(FrameObjectJoint))
269+
if (node.Tag.GetType() == typeof(FrameObjectPoint))
270270
node.SelectedImageIndex = node.ImageIndex = 7;
271271
else if (node.Tag.GetType() == typeof(FrameObjectSingleMesh))
272272
node.SelectedImageIndex = node.ImageIndex = 6;

Mafia2Libs/Forms/MapEditor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1954,8 +1954,8 @@ private void DuplicateButton_Click(object sender, EventArgs e)
19541954
newEntry = new FrameObjectDeflector((FrameObjectDeflector)node.Tag);
19551955
else if (node.Tag.GetType() == typeof(FrameObjectFrame))
19561956
newEntry = new FrameObjectFrame((FrameObjectFrame)node.Tag);
1957-
else if (node.Tag.GetType() == typeof(FrameObjectJoint))
1958-
newEntry = new FrameObjectJoint((FrameObjectJoint)node.Tag);
1957+
else if (node.Tag.GetType() == typeof(FrameObjectPoint))
1958+
newEntry = new FrameObjectPoint((FrameObjectPoint)node.Tag);
19591959
else if (node.Tag.GetType() == typeof(FrameObjectLight))
19601960
newEntry = new FrameObjectLight((FrameObjectLight)node.Tag);
19611961
else if (node.Tag.GetType() == typeof(FrameObjectModel))

Mafia2Libs/ResourceTypes/FileTypes/FrameNameTable/FrameNameTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public void BuildDataFromResource(FrameResource.FrameResource resource)
8181
object block = resource.FrameObjects.ElementAt(i).Value;
8282

8383
//possible types to save? might change in the future however.
84-
if (block.GetType().BaseType == typeof(FrameObjectBase) || block.GetType().BaseType == typeof(FrameObjectJoint) || block.GetType().BaseType == typeof(FrameObjectSingleMesh))
84+
if (block.GetType().BaseType == typeof(FrameObjectBase) || block.GetType().BaseType == typeof(FrameObjectPoint) || block.GetType().BaseType == typeof(FrameObjectSingleMesh))
8585
{
8686
if ((block as FrameObjectBase).IsOnFrameTable)
8787
{

Mafia2Libs/ResourceTypes/FileTypes/FrameResource/FramePack.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ private void SaveFrame(FrameObjectBase frame, BinaryWriter writer)
7272
writer.Write((ushort)FrameResourceObjectType.Frame);
7373
(frame as FrameObjectFrame).WriteToFile(writer);
7474
}
75-
else if (frame.GetType() == typeof(FrameObjectJoint))
75+
else if (frame.GetType() == typeof(FrameObjectPoint))
7676
{
7777
writer.Write((ushort)FrameResourceObjectType.Point);
78-
(frame as FrameObjectJoint).WriteToFile(writer);
78+
(frame as FrameObjectPoint).WriteToFile(writer);
7979
}
8080
else if (frame.GetType() == typeof(FrameObjectLight))
8181
{

Mafia2Libs/ResourceTypes/FileTypes/FrameResource/FrameResource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ public void UpdateFrameData()
826826

827827
public static bool IsFrameType(object entry)
828828
{
829-
if (entry.GetType() == typeof(FrameObjectJoint) ||
829+
if (entry.GetType() == typeof(FrameObjectPoint) ||
830830
entry.GetType() == typeof(FrameObjectSingleMesh) ||
831831
entry.GetType() == typeof(FrameObjectFrame) ||
832832
entry.GetType() == typeof(FrameObjectLight) ||
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
using System;
2-
using System.IO;
3-
using Utils.Extensions;
4-
5-
namespace ResourceTypes.FrameResource
1+
namespace ResourceTypes.FrameResource
62
{
73
public class FrameObjectPoint : FrameObjectJoint
84
{
95
public FrameObjectPoint(FrameResource OwningResource) : base(OwningResource) { }
6+
7+
public FrameObjectPoint(FrameObjectPoint other) : base(other) { }
108
}
119
}

0 commit comments

Comments
 (0)