2.5/Posemode:
[blender-staging.git] / source / blender / editors / object / editconstraint.c
index 9e8205e58abf76195b74a79b9ddf19755b6caee5..23b3caf8e268a81f0a8f784fae48cb1a8306fbbf 100644 (file)
@@ -87,7 +87,7 @@ ListBase *get_active_constraints (Object *ob)
        if (ob == NULL)
                return NULL;
 
-       if (ob->flag & OB_POSEMODE) {
+       if (ob->mode & OB_MODE_POSE) {
                bPoseChannel *pchan;
                
                pchan = get_active_posechannel(ob);
@@ -1065,7 +1065,7 @@ static int constraint_add_exec(bContext *C, wmOperator *op, Object *ob, ListBase
                {
                        /* if this constraint is being added to a posechannel, make sure
                         * the constraint gets evaluated in pose-space */
-                       if (ob->flag & OB_POSEMODE) {
+                       if (ob->mode & OB_MODE_POSE) {
                                con->ownspace = CONSTRAINT_SPACE_POSE;
                                con->flag |= CONSTRAINT_SPACEONCE;
                        }