Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2005-12-14 23:38:14 +0300
committerTon Roosendaal <ton@blender.org>2005-12-14 23:38:14 +0300
commit5ebf9cc1f4246ec790bedec087960934c97a206c (patch)
tree10b797f300666d2134ec5f7b4f30ee76214e636d /source/blender/blenloader
parentdde68ec0e036777208dccfe656d3ff7dd5dfc685 (diff)
parente64008e2c7b780db1c8e8a2fabc2f5cc1a0f8481 (diff)
Another merger of Orange branch with bf-blender, it has important fixes.
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/readfile.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/readfile.c b/source/blender/blenloader/intern/readfile.c
index e2528e349f0..5dfde4843a0 100644
--- a/source/blender/blenloader/intern/readfile.c
+++ b/source/blender/blenloader/intern/readfile.c
@@ -1416,6 +1416,7 @@ static void lib_link_pose(FileData *fd, Object *ob, bPose *pose)
{
bPoseChannel *pchan;
bArmature *arm= ob->data;
+ int rebuild= 0;
if (!pose)
return;
@@ -1424,6 +1425,12 @@ static void lib_link_pose(FileData *fd, Object *ob, bPose *pose)
// hurms... loop in a loop, but yah... later... (ton)
pchan->bone= get_named_bone(arm, pchan->name);
pchan->custom= newlibadr(fd, arm->id.lib, pchan->custom);
+ if(pchan->bone==NULL)
+ rebuild= 1;
+ }
+ if(rebuild) {
+ ob->recalc= OB_RECALC;
+ pose->flag |= POSE_RECALC;
}
}