Skip to content

Commit

Permalink
edge case fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kozmeker committed Dec 7, 2024
1 parent 7ed18cf commit 782f1d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Mafia2Libs/Forms/MapEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,7 @@ private void TRRebuildObjectButton_Click(object sender, EventArgs e)
Instance instance = instanceNode.Tag as Instance;
if (groupRef != null && groupRef.HasMeshObject())
{
Graphics.DeleteInstance(instance.RefID);//in case the object didnt have mesh before, so there are no duplicates
Graphics.DeleteInstance(groupRef,instance.RefID);//maybe add optionable bool to delete in rendermodel so it doesnt reload every instance here
for (int i = 0; i < groupRef.Children.Count; i++)
{
Expand Down

0 comments on commit 782f1d6

Please sign in to comment.