rename game object obcolor to color
This commit is contained in:
@@ -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),
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user