[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [33616] trunk/blender/source/blender/ editors/object/object_constraint.c: Bugfix #25183
Ton Roosendaal
ton at blender.org
Sun Dec 12 20:22:24 CET 2010
Revision: 33616
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=33616
Author: ton
Date: 2010-12-12 20:22:24 +0100 (Sun, 12 Dec 2010)
Log Message:
-----------
Bugfix #25183
Copy constraints pose mode: didn't update constraint flag to denote
colored bone drawing. Also notifier was missing for redraw.
Modified Paths:
--------------
trunk/blender/source/blender/editors/object/object_constraint.c
Modified: trunk/blender/source/blender/editors/object/object_constraint.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_constraint.c 2010-12-12 18:16:54 UTC (rev 33615)
+++ trunk/blender/source/blender/editors/object/object_constraint.c 2010-12-12 19:22:24 UTC (rev 33616)
@@ -1029,14 +1029,19 @@
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;
}
More information about the Bf-blender-cvs
mailing list