Sculpt: Fix bug in sculpt attribute api

SculptAttribute.domain wasn't being set
when creating from an existing CustomData
attribute.
This commit is contained in:
Joseph Eagar
2022-10-06 01:06:30 -07:00
parent 65c8c83679
commit f58b524669

View File

@@ -2677,6 +2677,7 @@ SculptAttribute *BKE_sculpt_attribute_get(struct Object *ob,
attr = sculpt_alloc_attr(ss);
attr->used = true;
attr->domain = domain;
attr->proptype = proptype;
attr->data = cdata->layers[index].data;
attr->bmesh_cd_offset = cdata->layers[index].offset;