From b22ae4f90de136fa96903bd89aaf4e13ef2b4039 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Thu, 29 Jul 2021 16:01:21 +0200 Subject: [PATCH] don't use optional.value for MacOS < 10.14 --- libsrc/occ/python_occ.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsrc/occ/python_occ.cpp b/libsrc/occ/python_occ.cpp index ba47cc58..de1f396f 100644 --- a/libsrc/occ/python_occ.cpp +++ b/libsrc/occ/python_occ.cpp @@ -404,7 +404,7 @@ DLL_HEADER void ExportNgOCC(py::module &m) auto it = OCCGeometry::global_shape_properties.find(self.TShape()); Vec<3> col(0.2, 0.2, 0.2); if (it != OCCGeometry::global_shape_properties.end() && it->second.col) - col = it->second.col.value(); + col = *it->second.col; // .value(); return std::vector ( { col(0), col(1), col(2) } ); }, [](const TopoDS_Shape & self, std::vector c) { Vec<3> col(c[0], c[1], c[2]);