[Bf-blender-cvs] [4c2c114324e] refactor-mesh-sharp-edge-generic: Use VArraySpan for sharp edge face set conversion
Hans Goudey
noreply at git.blender.org
Thu Jan 5 04:54:49 CET 2023
Commit: 4c2c114324e0d478e87a9dc71550a51c0f4330e7
Author: Hans Goudey
Date: Wed Jan 4 22:54:35 2023 -0500
Branches: refactor-mesh-sharp-edge-generic
https://developer.blender.org/rB4c2c114324e0d478e87a9dc71550a51c0f4330e7
Use VArraySpan for sharp edge face set conversion
===================================================================
M source/blender/editors/sculpt_paint/sculpt_face_set.cc
===================================================================
diff --git a/source/blender/editors/sculpt_paint/sculpt_face_set.cc b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
index 0484ed9d9c4..ea471778a30 100644
--- a/source/blender/editors/sculpt_paint/sculpt_face_set.cc
+++ b/source/blender/editors/sculpt_paint/sculpt_face_set.cc
@@ -697,7 +697,7 @@ static int sculpt_face_set_init_exec(bContext *C, wmOperator *op)
break;
}
case SCULPT_FACE_SETS_FROM_SHARP_EDGES: {
- const VArray<bool> sharp_edges = mesh->attributes().lookup_or_default<bool>(
+ const VArraySpan<bool> sharp_edges = mesh->attributes().lookup_or_default<bool>(
".sharp_edge", ATTR_DOMAIN_EDGE, false);
sculpt_face_sets_init_flood_fill(
ob, [&](const int /*from_face*/, const int edge, const int /*to_face*/) -> bool {
More information about the Bf-blender-cvs
mailing list