=IDProperties small update=

This update changes Object.properties to Object.game_properties 
(as discussed) so .properties can be used for ID Properties.

This should be fine as, after all, .properties was undocumented anyway :)
This commit is contained in:
2006-11-28 04:34:26 +00:00
parent a314527e20
commit 008d789f15
2 changed files with 5 additions and 5 deletions

View File

@@ -4811,7 +4811,7 @@ static PyGetSetDef BPy_Object_getseters[] = {
(getter)Object_getAction, (setter)NULL,
"The action associated with this object (if defined)",
NULL},
{"properties",
{"game_properties",
(getter)Object_getAllProperties, (setter)NULL,
"The object's properties",
NULL},
@@ -5042,7 +5042,7 @@ static PyGetSetDef BPy_Object_getseters[] = {
(getter)Object_getType, (setter)NULL,
"String describing Object type",
NULL},
{"idproperties", (getter)Object_GetProperties, (setter)NULL,
{"properties", (getter)Object_GetProperties, (setter)NULL,
"Get the ID properties associated with this object"},
{NULL,NULL,NULL,NULL,NULL} /* Sentinel */
};

View File

@@ -246,7 +246,7 @@ class Object:
To get these values in worldspace (taking into account vertex parents, constraints etc)
pass the argument 'worldspace' to these functions.
@ivar idproperties: Returns an L{IDProperty<IDProperty>} reference of type L{IDGroup<IDGroup>} to
@ivar properties: Returns an L{IDProperty<IDProperty>} reference of type L{IDGroup<IDGroup>} to
this object's ID Properties. Note that dict access is available for groups on the parent
L{IDProperty<IDProperty>} object, but for everything else you need to get the L{IDGroup<IDGroup>}
object from the L{IDProperty<IDProperty>}'s data member.
@@ -451,8 +451,8 @@ class Object:
@type oopsLoc: tuple of 2 floats
@ivar oopsSel: Object OOPs selection flag.
@type oopsSel: boolean
@ivar properties: The object's properties. Read-only.
@type properties: list of Properties.
@ivar game_properties: The object's properties. Read-only.
@type game_properties: list of Properties.
@ivar timeOffset: The time offset of the object's animation.
Value clamped to [-300000.0,300000.0].
@type timeOffset: float