Bugfix #11738:
authorJoshua Leung <aligorith@gmail.com>
Sun, 18 May 2008 10:41:42 +0000 (10:41 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 18 May 2008 10:41:42 +0000 (10:41 +0000)
PoseLib Preview crashed when there was no active pose as there were no poses at all (i.e. on a newly created Pose Library) .

source/blender/src/poselib.c

index 6d4b399cef05f16faef36bff83f3e4a888cb223c..2d8b0c8117511e46859e86ed73d0e24ae7ef37f4 100644 (file)
@@ -1110,7 +1110,7 @@ static void poselib_preview_init_data (tPoseLib_PreviewData *pld, Object *ob, sh
                return;
        }
        if (pld->marker == NULL) {
-               if ((apply_active==0) || (pld->act->markers.first)) {
+               if ((apply_active==0) && (pld->act->markers.first)) {
                        /* just use first one then... */
                        pld->marker= pld->act->markers.first;
                        printf("PoseLib had no active pose\n");