BGE Python API
authorCampbell Barton <ideasman42@gmail.com>
Sun, 12 Apr 2009 09:56:30 +0000 (09:56 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 12 Apr 2009 09:56:30 +0000 (09:56 +0000)
commit5b306b7541bfc60342b70bcc55456d5c453a294a
tree267232e135a123f3f75051a9732a9ab35370d769
parent55d2b184ec1b2c1adfe182ead937cedae1a8208d
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.
source/gameengine/Expressions/PyObjectPlus.cpp
source/gameengine/Expressions/PyObjectPlus.h
source/gameengine/Expressions/Value.cpp
source/gameengine/Ketsji/KX_ConstraintWrapper.cpp
source/gameengine/Ketsji/KX_Light.cpp
source/gameengine/Ketsji/KX_Scene.h
source/gameengine/Ketsji/KX_VehicleWrapper.cpp
source/gameengine/Ketsji/KX_VertexProxy.cpp