Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2007-02-22 02:14:01 +0300
committerCampbell Barton <ideasman42@gmail.com>2007-02-22 02:14:01 +0300
commita2ce2600d9ec1df8e12ddbb34290be6f7e18f08a (patch)
treee2583dd818a3ebebcd1a2c6efb7a94237bd59129 /source/blender/python/api2_2x/Pose.c
parentf12d3122752a947d2b72a63a8b9146a962ccb77b (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.c16
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,