diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-05-05 09:57:08 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-05-05 09:57:08 +0400 |
commit | 9e8261a13b696708c3f7f7bac83d5aae8ef43fed (patch) | |
tree | 1272eb2d36de992634bede0cf17c50d527ff8d5f /source/gameengine/Converter/KX_ConvertControllers.cpp | |
parent | be2c21bcdb2a05fa238cb637940269941a5fc12c (diff) |
Disable importing module python controller scripts at conversion time because it can run BGE functions and crash since the internal state isnt setup yet.
face-select mode wasnt working when used with projection paint.
Diffstat (limited to 'source/gameengine/Converter/KX_ConvertControllers.cpp')
-rw-r--r-- | source/gameengine/Converter/KX_ConvertControllers.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/gameengine/Converter/KX_ConvertControllers.cpp b/source/gameengine/Converter/KX_ConvertControllers.cpp index 79664ca4622..856f3f79588 100644 --- a/source/gameengine/Converter/KX_ConvertControllers.cpp +++ b/source/gameengine/Converter/KX_ConvertControllers.cpp @@ -216,8 +216,13 @@ void BL_ConvertControllers( * gives more pradictable performance for larger scripts */ if(pyctrl->m_mode==SCA_PythonController::SCA_PYEXEC_SCRIPT) pyctrl->Compile(); - else - pyctrl->Import(); + else { + /* We cant do this because importing runs the script which could end up accessing + * internal BGE functions, this is unstable while we're converting the scene. + * This is a pitty because its useful to see errors at startup but cant help it */ + + // pyctrl->Import(); + } } //done with gamecontroller |