diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-09-30 02:49:33 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-09-30 02:49:33 +0400 |
commit | 8b6f5c171da4d9b165c5ba0628f0302430dbed2b (patch) | |
tree | 143760eb8bfb151e6bea7fc5fdaed0fafe221a49 /source/gameengine/Converter/KX_BlenderSceneConverter.cpp | |
parent | 71b3088596feb008e503be6430a30555aaffa586 (diff) |
- rather then passing the python namespace dictionary to the controller function get the namespace from the converter.
- renamed SetPythonDictionary() to SetPyNamespace()
- remove IsLight(), GetGameObjectType() existed before this but wasnt used for lights.
Diffstat (limited to 'source/gameengine/Converter/KX_BlenderSceneConverter.cpp')
-rw-r--r-- | source/gameengine/Converter/KX_BlenderSceneConverter.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp index f0f5e1d4f41..26b4514061c 100644 --- a/source/gameengine/Converter/KX_BlenderSceneConverter.cpp +++ b/source/gameengine/Converter/KX_BlenderSceneConverter.cpp @@ -243,9 +243,6 @@ struct BlenderDebugDraw : public btIDebugDraw #endif void KX_BlenderSceneConverter::ConvertScene(class KX_Scene* destinationscene, -#ifndef DISABLE_PYTHON - PyObject* dictobj, -#endif class RAS_IRenderTools* rendertools, class RAS_ICanvas* canvas) { @@ -330,9 +327,6 @@ void KX_BlenderSceneConverter::ConvertScene(class KX_Scene* destinationscene, destinationscene, m_ketsjiEngine, physics_engine, -#ifndef DISABLE_PYTHON - dictobj, -#endif rendertools, canvas, this, @@ -924,3 +918,10 @@ void KX_BlenderSceneConverter::TestHandlesPhysicsObjectToAnimationIpo() } + +#ifndef DISABLE_PYTHON +PyObject *KX_BlenderSceneConverter::GetPyNamespace() +{ + return m_ketsjiEngine->GetPyNamespace(); +} +#endif |