Small fix for surviving changes in library data.

In case an armature object lost its object-data, it crashed in trying
to link the pose data.
This commit is contained in:
Ton Roosendaal 2006-03-07 21:50:26 +00:00
parent d0011f3318
commit c2fffa60b1

@ -1477,7 +1477,7 @@ static void lib_link_pose(FileData *fd, Object *ob, bPose *pose)
bPoseChannel *pchan;
bArmature *arm= ob->data;
int rebuild= 0;
if (!pose)
if (!pose || !arm)
return;
for (pchan = pose->chanbase.first; pchan; pchan=pchan->next) {