Blender Git Loki
Git Commits -> Revision 72b39d3
Revision 72b39d3 by Philipp Oeser (master) December 8, 2021, 15:10 (GMT) |
Fix T93728: Greasepencil separate will loose all vertex groups Caused by {rB3b6ee8cee708} The raw data is copied here correctly [`BKE_gpencil_stroke_weights_duplicate` in `BKE_gpencil_stroke_duplicate`] but the vertex groups names are missing. Prior to above commit is was enough to have `ED_object_add_duplicate` (this seemingly took care of duplicating object's defbase). Now vertex groups names sit on the `bGPdata` rather than the `Object`, and since the separate operation creates **new** `bGPdata` we have to copy vertex groups names - and active index - over [via `BKE_defgroup_copy_list`]. Maniphest Tasks: T93728 Differential Revision: https://developer.blender.org/D13509 |
Commit Details:
Full Hash: 72b39d3f920072b6a568c63c26e35d444cfcb6f3
Parent Commit: e23b54a
Lines Changed: +4, -0
1 Modified Path:
/source/blender/editors/gpencil/gpencil_edit.c (+4, -0) (Diff)