mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Fixes the command build for the Navmesh's Follow test tool so it doesn't create a parse error
This commit is contained in:
parent
6e35acf2a2
commit
5c52d565bc
|
|
@ -275,7 +275,11 @@ function NavEditorGui::followObject(%this)
|
|||
%text = NavEditorOptionsWindow-->TestProperties->FollowObject.getText();
|
||||
if(%text !$= "")
|
||||
{
|
||||
%obj = eval("return " @ %text);
|
||||
%command = "return " @ %text;
|
||||
if(!endsWith(%command, ";"))
|
||||
%command = %command @ ";";
|
||||
|
||||
%obj = eval(%command);
|
||||
if(!isObject(%obj))
|
||||
toolsMessageBoxOk("Error", "Cannot find object" SPC %text);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue