fix compile error for the BGE
[blender.git] / source / gameengine / Converter / BL_BlenderDataConversion.cpp
index 7572453fdab5f886b95b3e020c994a5ba117debc..3d38759d9516f074a8be18835e34d87e48cd6585 100644 (file)
@@ -1826,7 +1826,8 @@ ListBase *get_active_constraints2(Object *ob)
        if (!ob)
                return NULL;
 
-       if (ob->flag & OB_POSEMODE) {
+  // XXX - shouldnt we care about the pose data and not the mode???
+       if (ob->mode & OB_MODE_POSE) { 
                bPoseChannel *pchan;
 
                pchan = get_active_posechannel2(ob);