diff options
author | Ton Roosendaal <ton@blender.org> | 2010-12-12 22:22:24 +0300 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2010-12-12 22:22:24 +0300 |
commit | 32d82da9e45e4233afe8fcb15728589bd6e82278 (patch) | |
tree | b87460846aff1246822ede3f192feaa38d43dd0e /source/blender/editors/object/object_constraint.c | |
parent | ba2edc007b0adcf422c97398ecd706e78c342044 (diff) |
Bugfix #25183
Copy constraints pose mode: didn't update constraint flag to denote
colored bone drawing. Also notifier was missing for redraw.
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 7e44442d867..50088e4a889 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -1029,14 +1029,19 @@ static int pose_constraint_copy_exec(bContext *C, wmOperator *op) CTX_DATA_BEGIN(C, bPoseChannel*, chan, selected_pose_bones) { /* if we're not handling the object we're copying from, copy all constraints over */ - if (pchan != chan) + if (pchan != chan) { copy_constraints(&chan->constraints, &pchan->constraints, TRUE); + /* update flags (need to add here, not just copy) */ + chan->constflag |= pchan->constflag; + } } CTX_DATA_END; /* force depsgraph to get recalculated since new relationships added */ DAG_scene_sort(bmain, scene); /* sort order of objects/bones */ + WM_event_add_notifier(C, NC_OBJECT|ND_CONSTRAINT, NULL); + return OPERATOR_FINISHED; } |