mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Merge pull request #745 from Areloch/FixEditorsMenubar
Fixes handling of the setEditor commands so that the dropdown Editors menubar entry properly works
This commit is contained in:
commit
c95db92622
|
|
@ -910,10 +910,18 @@ function EditorMenuEditPaste()
|
|||
|
||||
function EditorToolsMenu::onSelectItem(%this, %id)
|
||||
{
|
||||
%toolName = getField( %this.item[%id], 2 );
|
||||
%tool = getField( %this.item[%id], 2 );
|
||||
|
||||
if(isObject(%tool))
|
||||
{
|
||||
%paletteName = "";
|
||||
EditorGui.setEditor(%toolName, %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);
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in a new issue