diff --git a/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript b/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript index dca4d1f30..38b5c72d8 100644 --- a/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript +++ b/Templates/BaseGame/game/tools/worldEditor/scripts/EditorGui.ed.tscript @@ -359,8 +359,9 @@ function EditorGui::addToEditorsMenu( %this, %displayName, %accel, %newPlugin ) if(!%alreadyExists) { - EditorsMenuList.add(%displayName TAB %accel TAB %newPlugin); - %windowMenu.addItem( %count, %displayName TAB %accel TAB %newPlugin ); + %pluginCommand = "EditorGui.setEditor(" @ %newPlugin @ ");"; + EditorsMenuList.add(%displayName TAB %accel TAB %pluginCommand); + %windowMenu.addItem( %count, %displayName TAB %accel TAB %pluginCommand); } return %accel;