Skip to content

Commit 782f1d6

Browse files
committed
edge case fix
1 parent 7ed18cf commit 782f1d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Mafia2Libs/Forms/MapEditor.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2868,6 +2868,7 @@ private void TRRebuildObjectButton_Click(object sender, EventArgs e)
28682868
Instance instance = instanceNode.Tag as Instance;
28692869
if (groupRef != null && groupRef.HasMeshObject())
28702870
{
2871+
Graphics.DeleteInstance(instance.RefID);//in case the object didnt have mesh before, so there are no duplicates
28712872
Graphics.DeleteInstance(groupRef,instance.RefID);//maybe add optionable bool to delete in rendermodel so it doesnt reload every instance here
28722873
for (int i = 0; i < groupRef.Children.Count; i++)
28732874
{

0 commit comments

Comments
 (0)