[Bf-blender-cvs] [10d65b821b4] blender-v3.0-release: Fix T93892: Changing bone name leaves non-functional vertex group
Philipp Oeser
noreply at git.blender.org
Tue Jan 11 09:00:06 CET 2022
Commit: 10d65b821b4eff8e3683c6c66c83fb088953e5a3
Author: Philipp Oeser
Date: Thu Dec 9 14:15:40 2021 +0100
Branches: blender-v3.0-release
https://developer.blender.org/rB10d65b821b4eff8e3683c6c66c83fb088953e5a3
Fix T93892: Changing bone name leaves non-functional vertex group
The corresponding vertex group was renamed properly, but the armature
influence was broken for that bone.
Caused by {rB3b6ee8cee708}.
Since above commit, vertex group names are stored on object data (mesh/
lattice/gpencil) and if we update these, we have to inform dependency
graph to have immediate effect.
Maniphest Tasks: T93892
Differential Revision: https://developer.blender.org/D13526
===================================================================
M source/blender/editors/armature/armature_naming.c
===================================================================
diff --git a/source/blender/editors/armature/armature_naming.c b/source/blender/editors/armature/armature_naming.c
index de1c14a15ce..9d251c52217 100644
--- a/source/blender/editors/armature/armature_naming.c
+++ b/source/blender/editors/armature/armature_naming.c
@@ -269,6 +269,7 @@ void ED_armature_bone_rename(Main *bmain,
bDeformGroup *dg = BKE_object_defgroup_find_name(ob, oldname);
if (dg) {
BLI_strncpy(dg->name, newname, MAXBONENAME);
+ DEG_id_tag_update(ob->data, ID_RECALC_GEOMETRY);
}
}
@@ -325,6 +326,7 @@ void ED_armature_bone_rename(Main *bmain,
bDeformGroup *dg = BKE_object_defgroup_find_name(ob, oldname);
if (dg) {
BLI_strncpy(dg->name, newname, MAXBONENAME);
+ DEG_id_tag_update(ob->data, ID_RECALC_GEOMETRY);
}
}
break;
More information about the Bf-blender-cvs
mailing list