fix compile error for the BGE
authorCampbell Barton <ideasman42@gmail.com>
Sun, 16 Aug 2009 03:51:25 +0000 (03:51 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 16 Aug 2009 03:51:25 +0000 (03:51 +0000)
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)
                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);
                bPoseChannel *pchan;
 
                pchan = get_active_posechannel2(ob);