blender/source/gameengine
Porteries Tristan 2050ecc307 BGE: Fix T48071: Global logic manager
Previously the logic manager was used as a global variable for SCA_ILogicBrick::m_sCurrentLogicManager,
this request to always update it before run any python script and allow call function like
ConvertPythonTo[GameObject/Mesh]. The bug showed in T48071 is that as exepted the global
m_sCurrentLogicManager is not updated with the proper scene logic manager.
Instead of trying to fix it by updating the logic manager everywhere and wait next bug report to add
a similar line. The following patch propose a different way:
- Every logic brick now contain its logic manager to SCA_ILogicBrick::m_logicManager, this value is
  set and get by SCA_ILogicBrick::[Set/Get]LogicManager, It's initialized from blender conversion and
  scene merging.
- Function ConvertPythonTo[GameObject/mesh] now take as first argument the logic manager to find name
  coresponding object or mesh. Only ConvertPythonToCamera doesn't do that because it uses the
  KX_Scene::FindCamera function.

Reviewers: moguri

Differential Revision: https://developer.blender.org/D1913
2016-04-10 23:57:43 +02:00
..
BlenderRoutines Remove SCons building system 2016-01-04 14:20:48 +05:00
Converter BGE: Fix T48071: Global logic manager 2016-04-10 23:57:43 +02:00
Expressions Remove SCons building system 2016-01-04 14:20:48 +05:00
GameLogic BGE: Fix T48071: Global logic manager 2016-04-10 23:57:43 +02:00
GamePlayer Remove SCons building system 2016-01-04 14:20:48 +05:00
Ketsji BGE: Fix T48071: Global logic manager 2016-04-10 23:57:43 +02:00
Network Remove SCons building system 2016-01-04 14:20:48 +05:00
Physics Fix T47893: BGE crashes w/ generated mesh data 2016-03-23 23:40:30 +11:00
Rasterizer Full Inverse-Quadratic-Equation Lamp Falloff 2016-03-13 02:05:36 +01:00
SceneGraph Remove SCons building system 2016-01-04 14:20:48 +05:00
VideoTexture Make Blender ready for C++11 2016-02-20 16:45:53 +01:00
CMakeLists.txt CMake: Enable strict flags for C++ 2015-03-27 18:23:31 +05:00