[Bf-blender-cvs] [004fe83bdbc] refactor-mesh-corners-generic: Small cleanup to cycles attribute access
Hans Goudey
noreply at git.blender.org
Sun Dec 11 19:04:58 CET 2022
Commit: 004fe83bdbc69c8d3be1114857fd860659825862
Author: Hans Goudey
Date: Sun Dec 11 11:55:57 2022 -0600
Branches: refactor-mesh-corners-generic
https://developer.blender.org/rB004fe83bdbc69c8d3be1114857fd860659825862
Small cleanup to cycles attribute access
===================================================================
M intern/cycles/blender/mesh.cpp
===================================================================
diff --git a/intern/cycles/blender/mesh.cpp b/intern/cycles/blender/mesh.cpp
index 83304fe2c1c..d0a98fca5ff 100644
--- a/intern/cycles/blender/mesh.cpp
+++ b/intern/cycles/blender/mesh.cpp
@@ -883,7 +883,7 @@ static void attr_create_random_per_island(Scene *scene,
else {
if (polys_num != 0) {
const MPoly *polys = static_cast<const MPoly *>(b_mesh.polygons[0].ptr.data);
- std::optional<BL::IntAttribute> corner_verts = find_corner_vert_attribute(b_mesh);
+ BL::IntAttribute corner_verts = *find_corner_vert_attribute(b_mesh);
for (int i = 0; i < polys_num; i++) {
const MPoly &b_poly = polys[i];
const int vert = corner_verts->data[b_poly.loopstart].value();
More information about the Bf-blender-cvs
mailing list