diff options
author | Chris Want <cwant@ualberta.ca> | 2004-01-04 20:11:22 +0300 |
---|---|---|
committer | Chris Want <cwant@ualberta.ca> | 2004-01-04 20:11:22 +0300 |
commit | 2572db0bf0618ecaa4d9153979d70747bc8176b9 (patch) | |
tree | 38aefcb090dc79f86041a5086efbf4675da7eeea /source | |
parent | 03fe244b589f6ffc5f37080f11aa9b109b7e19e6 (diff) |
Fixed a problem where duplicating bones with a freshly created
armature would segfault (access to a non-existent pose).
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/src/editarmature.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/src/editarmature.c b/source/blender/src/editarmature.c index dcfd2f6838a..74d508ea0d3 100644 --- a/source/blender/src/editarmature.c +++ b/source/blender/src/editarmature.c @@ -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){ |