[Bf-blender-cvs] [5f302c9d101] temp-pbvh-texpaint-automasking: temp-pbvh-texpaint-automasking: Use PBVHVertRef directly for Set
Joseph Eagar
noreply at git.blender.org
Mon Jan 23 17:38:48 CET 2023
Commit: 5f302c9d1019218e75c8732e9fd9ad2e3e4aa031
Author: Joseph Eagar
Date: Mon Jan 23 08:38:17 2023 -0800
Branches: temp-pbvh-texpaint-automasking
https://developer.blender.org/rB5f302c9d1019218e75c8732e9fd9ad2e3e4aa031
temp-pbvh-texpaint-automasking: Use PBVHVertRef directly for Set
===================================================================
M source/blender/editors/sculpt_paint/sculpt_automasking.cc
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_automasking.cc b/source/blender/editors/sculpt_paint/sculpt_automasking.cc
index ad0153bfbda..7f3c6ec4a3c 100644
--- a/source/blender/editors/sculpt_paint/sculpt_automasking.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_automasking.cc
@@ -986,7 +986,7 @@ void SCULPT_automasking_cache_check(
}
});
- Set<intptr_t> done_set;
+ Set<PBVHVertRef> done_set;
for (int i : IndexRange(totnode)) {
PBVHNode *node = nodes[i];
@@ -1013,8 +1013,8 @@ void SCULPT_automasking_cache_check(
SCULPT_automasking_node_update(ss, &automask_data, &vd);
- if (!done_set.contains(vertex.i)) {
- done_set.add(vertex.i);
+ if (!done_set.contains(vertex)) {
+ done_set.add(vertex);
float value = SCULPT_automasking_factor_get(automasking, ss, vd.vertex, &automask_data);
*(float *)SCULPT_vertex_attr_get(vd.vertex, ss->attrs.automasking_factor) = value;
More information about the Bf-blender-cvs
mailing list