diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-12-01 00:51:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-12-01 00:51:03 +0300 |
commit | df6169dada1bd6ad9617ef9e2adb17688f786314 (patch) | |
tree | bace5ff9cf42e703695bcd867a4afae9474a1ab6 /source/gameengine/Ketsji/KX_KetsjiEngine.cpp | |
parent | 17cd5811e767df5bc7247648e3cbe52e39575f56 (diff) |
bugfix [#23423] Multi-window : closing game windows cause blender crash
detect closing window while the BGE runs and exit without crashing, as if Esc was pressed.
Diffstat (limited to 'source/gameengine/Ketsji/KX_KetsjiEngine.cpp')
-rw-r--r-- | source/gameengine/Ketsji/KX_KetsjiEngine.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp index a1c7957dc72..35d02fbc9f4 100644 --- a/source/gameengine/Ketsji/KX_KetsjiEngine.cpp +++ b/source/gameengine/Ketsji/KX_KetsjiEngine.cpp @@ -946,6 +946,14 @@ int KX_KetsjiEngine::GetExitCode() if (m_scenes.begin()==m_scenes.end()) m_exitcode = KX_EXIT_REQUEST_NO_SCENES_LEFT; } + + // check if the window has been closed. + if(!m_exitcode) + { + //if(!m_canvas->Check()) { + // m_exitcode = KX_EXIT_REQUEST_OUTSIDE; + //} + } return m_exitcode; } |