mirror of
https://github.com/blender/blender
synced 2026-09-26 16:15:47 +03:00
Fix #119426: Enabling dyntopo creates duplicate mask attribute
The CustomData API automatically creates a unique attribute with
a unique name for generic data types. Caused by f2bcd73bd2.
Pull Request: https://projects.blender.org/blender/blender/pulls/119441
This commit is contained in:
parent
1640121a63
commit
961d8ef6d5
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ void enable_ex(Main *bmain, Depsgraph *depsgraph, Object *ob)
|
|||
BM_mesh_bm_from_me(ss->bm, mesh, &convert_params);
|
||||
triangulate(ss->bm);
|
||||
|
||||
BM_data_layer_add_named(ss->bm, &ss->bm->vdata, CD_PROP_FLOAT, ".sculpt_mask");
|
||||
BM_data_layer_ensure_named(ss->bm, &ss->bm->vdata, CD_PROP_FLOAT, ".sculpt_mask");
|
||||
|
||||
/* Make sure the data for existing faces are initialized. */
|
||||
if (mesh->faces_num != ss->bm->totface) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue