rename game object obcolor to color

This commit is contained in:
2010-01-30 21:59:20 +00:00
parent 25eb46810f
commit 1943a73439
2 changed files with 3 additions and 1 deletions

View File

@@ -1487,7 +1487,7 @@ PyAttributeDef KX_GameObject::Attributes[] = {
KX_PYATTRIBUTE_RO_FUNCTION("children", KX_GameObject, pyattr_get_children),
KX_PYATTRIBUTE_RO_FUNCTION("childrenRecursive", KX_GameObject, pyattr_get_children_recursive),
KX_PYATTRIBUTE_RO_FUNCTION("attrDict", KX_GameObject, pyattr_get_attrDict),
KX_PYATTRIBUTE_RW_FUNCTION("obcolor", KX_GameObject, pyattr_get_obcolor, pyattr_set_obcolor),
KX_PYATTRIBUTE_RW_FUNCTION("color", KX_GameObject, pyattr_get_obcolor, pyattr_set_obcolor),
/* Experemental, dont rely on these yet */
KX_PYATTRIBUTE_RO_FUNCTION("sensors", KX_GameObject, pyattr_get_sensors),

View File

@@ -1529,6 +1529,8 @@ class KX_GameObject(SCA_IObject):
@ivar visible: visibility flag.
- note: Game logic will still run for invisible objects.
@type visible: boolean
@ivar color: The object color of the object
@type color: list [r, g, b, a]
@ivar occlusion: occlusion capability flag.
@type occlusion: boolean
@ivar position: The object's position.