Commit: 6ced6c9545e54d3e27ec6d233b31e902d6624924 Author: Hans Goudey Date: Fri Dec 16 11:02:43 2022 -0600 Branches: master https://developer.blender.org/rB6ced6c9545e54d3e27ec6d233b31e902d6624924
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
