Fixed a crash when undoing/redoing while in Things Mode

This commit is contained in:
biwa 2021-10-24 20:28:36 +02:00
parent a0971e0ef2
commit 7448e0fb05

View file

@ -588,7 +588,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
if (BuilderPlug.Me.SelectChangedafterUndoRedo) if (BuilderPlug.Me.SelectChangedafterUndoRedo)
{ {
General.Map.Map.SelectMarkedGeometry(true, true); General.Map.Map.SelectMarkedGeometry(true, true);
General.Map.Map.ConvertSelection(SelectionType.Things);
} }
// If something is highlighted make sure to update the association so that it contains valid data // If something is highlighted make sure to update the association so that it contains valid data
@ -609,7 +608,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
if (BuilderPlug.Me.SelectChangedafterUndoRedo) if (BuilderPlug.Me.SelectChangedafterUndoRedo)
{ {
General.Map.Map.SelectMarkedGeometry(true, true); General.Map.Map.SelectMarkedGeometry(true, true);
General.Map.Map.ConvertSelection(SelectionType.Things);
} }
// If something is highlighted make sure to update the association so that it contains valid data // If something is highlighted make sure to update the association so that it contains valid data