Blender Git Loki
Git Commits -> Revision 5b306b7
Revision 5b306b7 by Campbell Barton (master) April 12, 2009, 09:56 (GMT) |
BGE Python API added defines PY_SET_ATTR_FAIL, PY_SET_ATTR_MISSING and PY_SET_ATTR_SUCCESS This is useful when objects that have user defined attributes (GameObject and Scene) When calling setattr on the parent, a return value of PY_SET_ATTR_FAIL means the attribute exists but failed to be set, so don't set the custom attribute. |
Commit Details:
Full Hash: 5b306b7541bfc60342b70bcc55456d5c453a294a
SVN Revision: 19676
Parent Commit: 55d2b18
Lines Changed: +52, -42
8 Modified Paths:
/source/gameengine/Expressions/PyObjectPlus.cpp (+3, -3) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+12, -2) (Diff)
/source/gameengine/Expressions/Value.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_ConstraintWrapper.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_Light.cpp (+11, -11) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+4, -4) (Diff)
/source/gameengine/Ketsji/KX_VehicleWrapper.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.cpp (+18, -18) (Diff)
/source/gameengine/Expressions/PyObjectPlus.h (+12, -2) (Diff)
/source/gameengine/Expressions/Value.cpp (+2, -2) (Diff)
/source/gameengine/Ketsji/KX_ConstraintWrapper.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_Light.cpp (+11, -11) (Diff)
/source/gameengine/Ketsji/KX_Scene.h (+4, -4) (Diff)
/source/gameengine/Ketsji/KX_VehicleWrapper.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_VertexProxy.cpp (+18, -18) (Diff)