[occ] allow to delete names

This commit is contained in:
Christopher Lackner 2022-01-18 18:39:08 +01:00
parent 6065fe40f4
commit b6396c15c0

View File

@ -724,7 +724,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
return *name;
else
return string();
}, [](const TopoDS_Shape & self, string name) {
}, [](const TopoDS_Shape & self, optional<string> name) {
OCCGeometry::global_shape_properties[self.TShape()].name = name;
}, "'name' of shape")
@ -1500,7 +1500,7 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m)
{
throw Exception("Cannot get property of ListOfShapes, get the property from individual shapes!");
},
[](ListOfShapes& shapes, std::string name)
[](ListOfShapes& shapes, optional<std::string> name)
{
for(auto& shape : shapes)
{