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:
Diffstat (limited to 'source/blender/python/api2_2x/Bone.c')
-rw-r--r--source/blender/python/api2_2x/Bone.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/python/api2_2x/Bone.c b/source/blender/python/api2_2x/Bone.c
index 59fa42c6139..8d66b08265a 100644
--- a/source/blender/python/api2_2x/Bone.c
+++ b/source/blender/python/api2_2x/Bone.c
@@ -1593,14 +1593,14 @@ static PyObject *Bone_hasIK( BPy_Bone * self )
{
if( !self->bone ) { //test to see if linked to armature
//use python vars
- if( self->flag & BONE_IK_TOPARENT ) {
+ if( self->flag & BONE_CONNECTED ) {
return EXPP_incr_ret_True();
} else {
return EXPP_incr_ret_False();
}
} else {
//use bone datastruct
- if( self->bone->flag & BONE_IK_TOPARENT ) {
+ if( self->bone->flag & BONE_CONNECTED ) {
return EXPP_incr_ret_True();
} else {
return EXPP_incr_ret_False();