mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-23 05:15:34 +00:00
Adjusts the handling of the disconnect call to not utilize package overrides, but instead a callOnModules invoke like most other cross-module calls.
This allows the editor to issue a disconnect call properly again.
This commit is contained in:
parent
28c8690d72
commit
7b7de1f10f
3 changed files with 14 additions and 38 deletions
|
|
@ -23,4 +23,13 @@ function ToolsModule::onCreate(%this)
|
|||
function ToolsModule::onDestroy(%this)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
function ToolsModule::disconnect(%this)
|
||||
{
|
||||
if ( isObject( Editor ) && Editor.isEditorEnabled() )
|
||||
{
|
||||
EditorGui.saveAs = false; //whatever edits we were doing are irrelevent now
|
||||
Editor.close(MainMenuGui);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue