Blender Git Commit Log
Git Commits -> Revision 9ed079b
Revision 9ed079b by Benoit Bolsee (master) July 19, 2008, 07:45 (GMT) |
BGE patch: Relink actuators with target within group when duplicating group; generalize protection against object deletion for all actuators that point to objects. Certain actuators hold a pointer to an objects: Property, SceneCamera, AddObject, Camera, Parent, TractTo. When a group is duplicated, the actuators that point to objects within the group will be relinked to point to the replicated objects and not to the original objects. This helps to setup self-contained group with a camera following a character for example. This feature also works when adding a single object (and all its children) with the AddObject actuator. The second part of the patch extends the protection against object deletion to all the actuators of the above list (previously, only the TrackTo, AddObject and Property actuators were protected). In case the target object of these actuators is deleted, the BGE won't crash. |
Commit Details:
Full Hash: 9ed079bf5cbe8a5a371190a8dedec970bcbd3ac2
SVN Revision: 15638
Parent Commit: 5e2ee19
Lines Changed: +254, -50
18 Modified Paths:
/source/gameengine/Converter/BL_DeformableGameObject.h (+1, -0) (Diff)
/source/gameengine/Converter/KX_ConvertActuators.cpp (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.cpp (+4, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.h (+3, -0) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.cpp (+27, -6) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.h (+5, -3) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.cpp (+49, -13) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.h (+6, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+17, -1) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.cpp (+46, -5) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.h (+5, -2) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp (+11, -0) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.h (+3, -0) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+17, -14) (Diff)
/source/gameengine/Ketsji/KX_SceneActuator.cpp (+43, -2) (Diff)
/source/gameengine/Ketsji/KX_SceneActuator.h (+3, -0) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.cpp (+12, -0) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.h (+1, -0) (Diff)
/source/gameengine/Converter/KX_ConvertActuators.cpp (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.cpp (+4, -1) (Diff)
/source/gameengine/GameLogic/SCA_ILogicBrick.h (+3, -0) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.cpp (+27, -6) (Diff)
/source/gameengine/GameLogic/SCA_PropertyActuator.h (+5, -3) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.cpp (+49, -13) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.h (+6, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+17, -1) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.cpp (+46, -5) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.h (+5, -2) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp (+11, -0) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.h (+3, -0) (Diff)
/source/gameengine/Ketsji/KX_Scene.cpp (+17, -14) (Diff)
/source/gameengine/Ketsji/KX_SceneActuator.cpp (+43, -2) (Diff)
/source/gameengine/Ketsji/KX_SceneActuator.h (+3, -0) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.cpp (+12, -0) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.h (+1, -0) (Diff)