[Bf-blender-cvs] [f58b5246695] master: Sculpt: Fix bug in sculpt attribute api
Joseph Eagar
noreply at git.blender.org
Thu Oct 6 22:20:19 CEST 2022
Commit: f58b5246695f1fc9b8545c84569566685a64c8cb
Author: Joseph Eagar
Date: Thu Oct 6 01:06:30 2022 -0700
Branches: master
https://developer.blender.org/rBf58b5246695f1fc9b8545c84569566685a64c8cb
Sculpt: Fix bug in sculpt attribute api
SculptAttribute.domain wasn't being set
when creating from an existing CustomData
attribute.
===================================================================
M source/blender/blenkernel/intern/paint.cc
===================================================================
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;
More information about the Bf-blender-cvs
mailing list