PoseLib Preview crashed when there was no active pose as there were no poses at all (i.e. on a newly created Pose Library) .
This commit is contained in:
Joshua Leung 2008-05-18 10:41:42 +00:00
parent aba4f31086
commit 54be27b40e

@ -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");