Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Eagar <joeedh@gmail.com>2022-10-06 11:06:30 +0300
committerJoseph Eagar <joeedh@gmail.com>2022-10-06 23:19:35 +0300
commitf58b5246695f1fc9b8545c84569566685a64c8cb (patch)
treec8808a4b8673079e21d6cd74fa9f8ea98379d7d7
parent65c8c8367929d14a9036f86ddb3796f620832730 (diff)
Sculpt: Fix bug in sculpt attribute api
SculptAttribute.domain wasn't being set when creating from an existing CustomData attribute.
-rw-r--r--source/blender/blenkernel/intern/paint.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/paint.cc b/source/blender/blenkernel/intern/paint.cc
index 7b3ad170339..00535ea5528 100644
--- a/source/blender/blenkernel/intern/paint.cc
+++ b/source/blender/blenkernel/intern/paint.cc
@@ -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;