forked from bartvdbraak/blender
2050ecc307
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 |
||
---|---|---|
.. | ||
BL_ActionActuator.cpp | ||
BL_ActionActuator.h | ||
BL_ArmatureActuator.cpp | ||
BL_ArmatureActuator.h | ||
BL_ArmatureChannel.cpp | ||
BL_ArmatureChannel.h | ||
BL_ArmatureConstraint.cpp | ||
BL_ArmatureConstraint.h | ||
BL_ArmatureObject.cpp | ||
BL_ArmatureObject.h | ||
BL_BlenderDataConversion.cpp | ||
BL_BlenderDataConversion.h | ||
BL_DeformableGameObject.cpp | ||
BL_DeformableGameObject.h | ||
BL_MeshDeformer.cpp | ||
BL_MeshDeformer.h | ||
BL_ModifierDeformer.cpp | ||
BL_ModifierDeformer.h | ||
BL_ShapeActionActuator.cpp | ||
BL_ShapeActionActuator.h | ||
BL_ShapeDeformer.cpp | ||
BL_ShapeDeformer.h | ||
BL_SkinDeformer.cpp | ||
BL_SkinDeformer.h | ||
CMakeLists.txt | ||
KX_BlenderScalarInterpolator.cpp | ||
KX_BlenderScalarInterpolator.h | ||
KX_BlenderSceneConverter.cpp | ||
KX_BlenderSceneConverter.h | ||
KX_ConvertActuators.cpp | ||
KX_ConvertActuators.h | ||
KX_ConvertControllers.cpp | ||
KX_ConvertControllers.h | ||
KX_ConvertProperties.cpp | ||
KX_ConvertProperties.h | ||
KX_ConvertSensors.cpp | ||
KX_ConvertSensors.h | ||
KX_LibLoadStatus.cpp | ||
KX_LibLoadStatus.h | ||
KX_SoftBodyDeformer.cpp | ||
KX_SoftBodyDeformer.h |