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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user