mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-12 15:14:35 +00:00
Fixes handling of the setEditor commands so that the dropdown Editors menubar entry properly works
This commit is contained in:
parent
0fad36787f
commit
87ea262ef0
1 changed files with 11 additions and 3 deletions
|
|
@ -910,10 +910,18 @@ function EditorMenuEditPaste()
|
||||||
|
|
||||||
function EditorToolsMenu::onSelectItem(%this, %id)
|
function EditorToolsMenu::onSelectItem(%this, %id)
|
||||||
{
|
{
|
||||||
%toolName = getField( %this.item[%id], 2 );
|
%tool = getField( %this.item[%id], 2 );
|
||||||
|
|
||||||
%paletteName = "";
|
if(isObject(%tool))
|
||||||
EditorGui.setEditor(%toolName, %paletteName );
|
{
|
||||||
|
%paletteName = "";
|
||||||
|
EditorGui.setEditor(%tool, %paletteName );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
//it's an embedded command, so we'll just execute it
|
||||||
|
eval(%tool);
|
||||||
|
}
|
||||||
|
|
||||||
%this.checkRadioItem(0, %this.getItemCount(), %id);
|
%this.checkRadioItem(0, %this.getItemCount(), %id);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue