Commit: a2cee52617d959e8a903f2deafd436bace7f7b8f Author: Hans Goudey Date: Fri Dec 16 11:02:43 2022 -0600 Branches: geometry-nodes-simulation https://developer.blender.org/rBa2cee52617d959e8a903f2deafd436bace7f7b8f
Fix std::optional value() build error on older macOS SDK Patch from @dupoxy Differential Revision: https://developer.blender.org/D16796 =================================================================== M source/blender/nodes/geometry/nodes/node_geo_set_position.cc =================================================================== diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_position.cc b/source/blender/nodes/geometry/nodes/node_geo_set_position.cc index e219d5bc0a1..ec8c82fc66d 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_set_position.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_set_position.cc @@ -33,7 +33,7 @@ static void set_computed_position_and_offset(GeometryComponent &component, if (in_positions.is_same(positions_read_only)) { if (const std::optional<float3> offset = in_offsets.get_if_single()) { - if (math::is_zero(offset.value())) { + if (math::is_zero(*offset)) { return; } } _______________________________________________ Bf-blender-cvs mailing list [email protected] List details, subscription details or unsubscribe: https://lists.blender.org/mailman/listinfo/bf-blender-cvs
