Fix std::optional value() build error on older macOS SDK

Patch from @dupoxy

Differential Revision: https://developer.blender.org/D16796
This commit is contained in:
Hans Goudey 2022-12-16 11:02:43 -06:00
parent a0ed3601c9
commit a2cee52617
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}