mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fixed a problem where duplicating bones with a freshly created
armature would segfault (access to a non-existent pose).
This commit is contained in:
parent
03fe244b58
commit
2572db0bf0
1 changed files with 2 additions and 2 deletions
|
|
@ -1998,7 +1998,7 @@ void update_dup_subtarget(EditBone *dupBone)
|
|||
char *subname;
|
||||
|
||||
|
||||
if ( (chan = get_pose_channel(OBACT->pose, dupBone->name)) )
|
||||
if ( (chan = verify_pose_channel(OBACT->pose, dupBone->name)) )
|
||||
if ( (conlist = &chan->constraints) )
|
||||
for (curcon = conlist->first; curcon; curcon=curcon->next) {
|
||||
/* does this constraint have a subtarget in
|
||||
|
|
@ -2057,7 +2057,7 @@ void adduplicate_armature(void)
|
|||
bPoseChannel *chanold, *channew;
|
||||
ListBase *listold, *listnew;
|
||||
|
||||
chanold = get_pose_channel (OBACT->pose, curBone->name);
|
||||
chanold = verify_pose_channel (OBACT->pose, curBone->name);
|
||||
if (chanold) {
|
||||
listold = &chanold->constraints;
|
||||
if (listold){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue