fix tuple creation in return color

This commit is contained in:
Christopher Lackner 2022-05-06 17:47:50 +02:00
parent c61753d89d
commit 9b44069e54

View File

@ -610,7 +610,7 @@ DLL_HEADER void ExportNetgenMeshing(py::module &m)
[](const FaceDescriptor& self) [](const FaceDescriptor& self)
{ {
auto sc = self.SurfColour(); auto sc = self.SurfColour();
return py::tuple(sc[0], sc[1], sc[2]); return py::make_tuple(sc[0], sc[1], sc[2]);
}, },
[](FaceDescriptor& self, py::tuple col) [](FaceDescriptor& self, py::tuple col)
{ {