A large collection of fixes from Ken Hughes including:

- corrections to constants
 - parameter type checking
 - correct use of METH_VARARGS vs METH_NOARGS
 - return objects instead of strings in Scene.getChildren() as per doc.
 - correct logical operators

Thanks, Ken!
This commit is contained in:
Stephen Swaney
2005-08-21 15:00:17 +00:00
parent 4065cdb550
commit bb5ae49992
8 changed files with 56 additions and 39 deletions

View File

@@ -323,7 +323,7 @@ automatic when the script finishes."},
"Returns the object's parent object"},
{"getParentBoneName", ( PyCFunction ) Object_getParentBoneName, METH_NOARGS,
"Returns None, or the 'sub-name' of the parent (eg. Bone name)"},
{"getSize", ( PyCFunction ) Object_getSize, METH_VARARGS,
{"getSize", ( PyCFunction ) Object_getSize, METH_NOARGS,
"Returns the object's size (x, y, z)"},
{"getTimeOffset", ( PyCFunction ) Object_getTimeOffset, METH_NOARGS,
"Returns the object's time offset"},