[Bf-blender-cvs] [0ecc1d788cb] blender-v3.3-release: Fix T101046: missing DEG update changing bone layers in editmode

Philipp Oeser noreply at git.blender.org
Fri Sep 30 14:39:55 CEST 2022


Commit: 0ecc1d788cb9499bf9d4d8834335b4108bfa1084
Author: Philipp Oeser
Date:   Wed Sep 14 13:16:03 2022 +0200
Branches: blender-v3.3-release
https://developer.blender.org/rB0ecc1d788cb9499bf9d4d8834335b4108bfa1084

Fix T101046: missing DEG update changing bone layers in editmode

Following {T54811} (and {rBbb92edd1c802}), DEG updates have been added
to the various operators. This has also been done for the layers
operators (see {rBf998bad211ae}, `ARMATURE_OT_bone_layers` has been
marked done in T54811). However, instead of `ARMATURE_OT_bone_layers`,
the update tagging actually happened for `POSE_OT_bone_layers`.

Now do this for `ARMATURE_OT_bone_layers` as well (keep it for
`POSE_OT_bone_layers`, dont think this is wrong there either).

Maniphest Tasks: T101046

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

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

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

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

diff --git a/source/blender/editors/armature/pose_edit.c b/source/blender/editors/armature/pose_edit.c
index cec83ffa0f0..9f288ede53d 100644
--- a/source/blender/editors/armature/pose_edit.c
+++ b/source/blender/editors/armature/pose_edit.c
@@ -952,6 +952,7 @@ static int armature_bone_layers_exec(bContext *C, wmOperator *op)
 
   /* NOTE: notifier might evolve. */
   WM_event_add_notifier(C, NC_OBJECT | ND_POSE, ob);
+  DEG_id_tag_update((ID *)ob->data, ID_RECALC_PARAMETERS);
 
   return OPERATOR_FINISHED;
 }



More information about the Bf-blender-cvs mailing list