forked from bartvdbraak/blender
Bugfix #11738:
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:
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");
|
||||
|
Loading…
Reference in New Issue
Block a user