mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 00:24:40 +00:00
- 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:
parent
9c654d7932
commit
098a5ac36d
2 changed files with 2 additions and 2 deletions
|
|
@ -323,7 +323,7 @@ function ShapeEditorPlugin::onExitMission( %this )
|
||||||
{
|
{
|
||||||
// unselect the current shape
|
// unselect the current shape
|
||||||
ShapeEdShapeView.setModel( "" );
|
ShapeEdShapeView.setModel( "" );
|
||||||
if (ShapeEditor.shape != 0)
|
if (ShapeEditor.shape != 0 && ShapeEditor.shape != -1)
|
||||||
ShapeEditor.shape.delete();
|
ShapeEditor.shape.delete();
|
||||||
ShapeEditor.shape = 0;
|
ShapeEditor.shape = 0;
|
||||||
ShapeEdUndoManager.clearAll();
|
ShapeEdUndoManager.clearAll();
|
||||||
|
|
|
||||||
|
|
@ -893,7 +893,7 @@ function ObjectBuilderGui::createCommandType(%this, %index)
|
||||||
text = %this.field[%index, value];
|
text = %this.field[%index, value];
|
||||||
position = %this.curXPos + %this.columnOffset @ " " @ %this.curYPos;
|
position = %this.curXPos + %this.columnOffset @ " " @ %this.curYPos;
|
||||||
modal = "1";
|
modal = "1";
|
||||||
command = "TextPad($ThisControl.text, \"$ThisControl.apply\", $ThisControl.getRoot());";
|
command = "TextPad($ThisControl.text, $ThisControl@\".apply\", $ThisControl.getRoot());";
|
||||||
};
|
};
|
||||||
|
|
||||||
%this.numControls++;
|
%this.numControls++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue