Blender Git Loki

Git Commits -> Revision 1a16fb1

Revision 1a16fb1 by Campbell Barton (master)
May 19, 2009, 07:16 (GMT)
BGE Py API
use PY_SET_ATTR_FAIL and PY_SET_ATTR_SUCCESS return values so the fake subclassing can know if a value failed to be set or if it was missing from the type. (with PY_SET_ATTR_MISSING)

Also noticed some other mistakes.
- KX_LightObject, setting the type didnt check for an int.
- KX_SoundActuator, didnt return an error when assigning an invalid orientation value
- KX_GameObject, worldOrientation didnt return an error value.

Commit Details:

Full Hash: 1a16fb1953a566cd57f49683d4711b7052d6b586
SVN Revision: 20273
Parent Commit: 5bd4b25
Lines Changed: +89, -83

16 Modified Paths:

/source/gameengine/Converter/BL_ActionActuator.cpp (+3, -3) (Diff)
/source/gameengine/Converter/BL_ShapeActionActuator.cpp (+3, -3) (Diff)
/source/gameengine/GameLogic/SCA_PythonController.cpp (+2, -2) (Diff)
/source/gameengine/GameLogic/SCA_RandomActuator.cpp (+2, -2) (Diff)
/source/gameengine/GameLogic/SCA_RandomSensor.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_Camera.cpp (+12, -12) (Diff)
/source/gameengine/Ketsji/KX_CameraActuator.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_CDActuator.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_GameObject.cpp (+23, -23) (Diff)
/source/gameengine/Ketsji/KX_Light.cpp (+8, -3) (Diff)
/source/gameengine/Ketsji/KX_ParentActuator.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_PolygonMaterial.cpp (+4, -4) (Diff)
/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_SoundActuator.cpp (+19, -18) (Diff)
/source/gameengine/Ketsji/KX_TrackToActuator.cpp (+2, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021