diff options
author | Philipp Oeser <info@graphics-engineer.com> | 2021-12-09 16:15:40 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2021-12-09 18:47:06 +0300 |
commit | fc14d02bc59636bf613ec473c65c06c7198d696b (patch) | |
tree | 3d6b1fc8236bc4bcf61c58bbdb430c35d13226ca /source/blender/editors/armature | |
parent | 5ce1c63e1bf0f04509f08e835f8180fe2b4242ea (diff) |
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
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/armature_naming.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |