Blender Git Commit Log
Git Commits -> Revision 47c2271
Revision 47c2271 by Campbell Barton (master) August 14, 2008, 08:58 (GMT) |
Python API get/setObject update for Actuators. (SetParent, AddObject, Camera and TrackTo) * bugfix for BGE python api - SetParent actuator getObject would segfault if the object was not set. * Added utility function ConvertPythonToGameObject() that can take a GameObject, string or None and set the game object from this since it was being done in a number of places. * allow setObject(None), since no object is valid for actuators, Python should be able to set this. * added optional argument for getObject() so it returns the KX_GameObject rather then its name, would prefer this be default but it could break existing games. |
Commit Details:
Full Hash: 47c2271d673173ee93b9d91926de9ea41415d411
SVN Revision: 16105
Parent Commit: 639f3e1
Lines Changed: +242, -186
16 Modified Paths:
/source/gameengine/Converter/KX_ConvertActuators.cpp (+10, -3) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+7, -0) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.cpp (+30, -37) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+70, -14) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+4, -0) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.cpp (+34, -34) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp (+29, -42) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.cpp (+29, -31) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.h (+2, -2) (Diff)
/source/gameengine/PyDoc/KX_CameraActuator.py (+5, -3) (Diff)
/source/gameengine/PyDoc/KX_ParentActuator.py (+5, -4) (Diff)
/source/gameengine/PyDoc/KX_SCA_AddObjectActuator.py (+7, -6) (Diff)
/source/gameengine/PyDoc/KX_TrackToActuator.py (+4, -4) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+7, -0) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.cpp (+30, -37) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+70, -14) (Diff)
/source/gameengine/Ketsji/KX_GameObject.h (+4, -0) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.cpp (+34, -34) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp (+29, -42) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.h (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.cpp (+29, -31) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.h (+2, -2) (Diff)
/source/gameengine/PyDoc/KX_CameraActuator.py (+5, -3) (Diff)
/source/gameengine/PyDoc/KX_ParentActuator.py (+5, -4) (Diff)
/source/gameengine/PyDoc/KX_SCA_AddObjectActuator.py (+7, -6) (Diff)
/source/gameengine/PyDoc/KX_TrackToActuator.py (+4, -4) (Diff)