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
This commit is contained in:
parent
5ce1c63e1b
commit
fc14d02bc5
Notes:
blender-bot
2023-02-14 02:22:13 +01:00
Referenced by issue #93892, Change bone name cause vertex group not working until select another vertex group Referenced by issue #93479, 3.0 Potential candidates for corrective releases
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue