- Fixed issue of TypeCommand field type not applying change when text was edited in the textpad

- Fixed it to check both 0 and -1 values when exiting out of shapeEditor since both can be returns
This commit is contained in:
JeffR 2025-08-25 23:42:58 -05:00
parent 9c654d7932
commit 098a5ac36d
2 changed files with 2 additions and 2 deletions

View file

@ -323,7 +323,7 @@ function ShapeEditorPlugin::onExitMission( %this )
{
// unselect the current shape
ShapeEdShapeView.setModel( "" );
if (ShapeEditor.shape != 0)
if (ShapeEditor.shape != 0 && ShapeEditor.shape != -1)
ShapeEditor.shape.delete();
ShapeEditor.shape = 0;
ShapeEdUndoManager.clearAll();