mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Merge pull request #954 from Areloch/FixNavmeshFollowCommand
Fixes the command build for the Navmesh's Follow test tool so it doesn't create a parse error
This commit is contained in:
commit
67367ee84a
1 changed files with 5 additions and 1 deletions
|
|
@ -275,7 +275,11 @@ function NavEditorGui::followObject(%this)
|
||||||
%text = NavEditorOptionsWindow-->TestProperties->FollowObject.getText();
|
%text = NavEditorOptionsWindow-->TestProperties->FollowObject.getText();
|
||||||
if(%text !$= "")
|
if(%text !$= "")
|
||||||
{
|
{
|
||||||
%obj = eval("return " @ %text);
|
%command = "return " @ %text;
|
||||||
|
if(!endsWith(%command, ";"))
|
||||||
|
%command = %command @ ";";
|
||||||
|
|
||||||
|
%obj = eval(%command);
|
||||||
if(!isObject(%obj))
|
if(!isObject(%obj))
|
||||||
toolsMessageBoxOk("Error", "Cannot find object" SPC %text);
|
toolsMessageBoxOk("Error", "Cannot find object" SPC %text);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue