From 95e09828a63f47cf415aaaf62f0394be22665984 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Thu, 16 Sep 2021 11:40:48 +0200 Subject: [PATCH] shape.Scale keeps names --- libsrc/occ/python_occ_shapes.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/python_occ_shapes.cpp b/libsrc/occ/python_occ_shapes.cpp index fe2f56d1..5ce48ce3 100644 --- a/libsrc/occ/python_occ_shapes.cpp +++ b/libsrc/occ/python_occ_shapes.cpp @@ -800,7 +800,9 @@ DLL_HEADER void ExportNgOCCShapes(py::module &m) { gp_Trsf trafo; trafo.SetScale(p, s); - return BRepBuilderAPI_Transform(shape, trafo).Shape(); + BRepBuilderAPI_Transform builder(shape, trafo); + PropagateProperties(builder, shape); + return builder.Shape(); }, py::arg("p"), py::arg("s"), "copy shape, and scale copy by factor 's'")