[Bf-blender-cvs] [193af4ddc8d] blender2.8: Fix: Tag armature for copy on write when selecting bones, so active bone gets updated

Ines Almeida noreply at git.blender.org
Mon May 7 15:58:25 CEST 2018


Commit: 193af4ddc8dee29006fc34990bd18809bb2370db
Author: Ines Almeida
Date:   Mon May 7 14:12:20 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB193af4ddc8dee29006fc34990bd18809bb2370db

Fix: Tag armature for copy on write when selecting bones, so active bone gets updated

see 8a2d2f1bb40 for similar

Reviewers: aligorith, sergey

Reviewed By: aligorith

Maniphest Tasks: T54812

Differential Revision: https://developer.blender.org/D3204

===================================================================

M	source/blender/editors/armature/pose_select.c

===================================================================

diff --git a/source/blender/editors/armature/pose_select.c b/source/blender/editors/armature/pose_select.c
index 9087a8879d6..9207a55b380 100644
--- a/source/blender/editors/armature/pose_select.c
+++ b/source/blender/editors/armature/pose_select.c
@@ -480,6 +480,9 @@ static int pose_select_parent_exec(bContext *C, wmOperator *UNUSED(op))
 		/* mask modifier ('armature' mode), etc. */
 		DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
 	}
+
+	/* tag armature for copy-on-write update (since act_bone is in armature not object) */
+	DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
 	
 	return OPERATOR_FINISHED;
 }
@@ -643,7 +646,10 @@ static int pose_select_hierarchy_exec(bContext *C, wmOperator *op)
 		/* mask modifier ('armature' mode), etc. */
 		DEG_id_tag_update(&ob->id, OB_RECALC_DATA);
 	}
-	
+
+	/* tag armature for copy-on-write update (since act_bone is in armature not object) */
+	DEG_id_tag_update(&arm->id, DEG_TAG_COPY_ON_WRITE);
+
 	return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list