Orange report bug; Adding a new scene, choose "link obdata" gives corrupt

memory. Poses should be relinked right after duplicating, not during a
redraw (when more objects use same armature).

Added in readfile a patch to make sure files saved with this duplicate
error can still be used.
This commit is contained in:
2005-09-29 16:37:37 +00:00
parent 76a57eb82f
commit 1ec6cc4986
5 changed files with 11 additions and 3 deletions

View File

@@ -3666,7 +3666,9 @@ void single_obdata_users(int flag)
ob->data= copy_lattice(ob->data);
break;
case OB_ARMATURE:
ob->data=copy_armature(ob->data);
ob->recalc |= OB_RECALC_DATA;
ob->data= copy_armature(ob->data);
armature_rebuild_pose(ob, ob->data);
break;
default:
printf("ERROR single_obdata_users: %s\n", id->name);
@@ -4253,6 +4255,7 @@ void adduplicate(int noTrans)
ID_NEW_US2(obn->data )
else {
obn->data= copy_armature(obn->data);
armature_rebuild_pose(obn, obn->data);
didit= 1;
}
id->us--;