diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-02-22 02:14:01 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-02-22 02:14:01 +0300 |
commit | a2ce2600d9ec1df8e12ddbb34290be6f7e18f08a (patch) | |
tree | e2583dd818a3ebebcd1a2c6efb7a94237bd59129 /source/blender/python/api2_2x/Pose.c | |
parent | f12d3122752a947d2b72a63a8b9146a962ccb77b (diff) |
renamed posebone.ik to hasIK, removed unused code, made the function name of Armatue's py object from Blender object consistant with others.
Diffstat (limited to 'source/blender/python/api2_2x/Pose.c')
-rw-r--r-- | source/blender/python/api2_2x/Pose.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/source/blender/python/api2_2x/Pose.c b/source/blender/python/api2_2x/Pose.c index 93bc588d107..e7b3434a8a6 100644 --- a/source/blender/python/api2_2x/Pose.c +++ b/source/blender/python/api2_2x/Pose.c @@ -971,9 +971,9 @@ static int PoseBone_setDisplayObject(BPy_PoseBone *self, PyObject *value, void * return 0; } -//------------------------PoseBone.ik (getter) +//------------------------PoseBone.hasIK (getter) //Returns True/False if the bone has IK's -static PyObject *PoseBone_getIK(BPy_PoseBone *self, void *closure) +static PyObject *PoseBone_hasIK(BPy_PoseBone *self, void *closure) { Object *obj = NULL; @@ -1037,25 +1037,29 @@ static int PoseBone_setStiff(BPy_PoseBone *self, PyObject *value, void *axis) //------------------------PoseBone.* (getter) //Gets the pose bones flag +/* static PyObject *PoseBone_getFlag(BPy_PoseBone *self, void *flag) { - if (self->posechannel->ikflag & (int)flag) + if (self->posechannel->flag & (int)flag) Py_RETURN_TRUE; else Py_RETURN_FALSE; } +*/ //------------------------PoseBone.* (setter) //Gets the pose bones flag +/* static int PoseBone_setFlag(BPy_PoseBone *self, PyObject *value, void *flag) { if ( PyObject_IsTrue(value) ) - self->posechannel->ikflag |= (int)flag; + self->posechannel->flag |= (int)flag; else - self->posechannel->ikflag &= ~(int)flag; + self->posechannel->flag &= ~(int)flag; return 0; } +*/ //------------------------PoseBone.* (getter) //Gets the pose bones ikflag @@ -1113,7 +1117,7 @@ static PyGetSetDef BPy_PoseBone_getset[] = { {"displayObject", (getter)PoseBone_getDisplayObject, (setter)PoseBone_setDisplayObject, "The poseMode object to draw in place of this bone", NULL}, - {"ik", (getter)PoseBone_getIK, (setter)NULL, + {"hasIK", (getter)PoseBone_hasIK, (setter)NULL, "True if the pose bone has IK (readonly)", NULL }, {"stretch", (getter)PoseBone_getStretch, (setter)PoseBone_setStretch, |