From 033c18015993a89601b73ef932648f0cf5307611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Sch=C3=B6berl?= Date: Mon, 23 Nov 2015 13:13:06 +0100 Subject: [PATCH] preserve bcnames for surface top-level objects --- libsrc/csg/python_csg.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libsrc/csg/python_csg.cpp b/libsrc/csg/python_csg.cpp index 375cd508..df164f21 100644 --- a/libsrc/csg/python_csg.cpp +++ b/libsrc/csg/python_csg.cpp @@ -367,8 +367,12 @@ DLL_HEADER void ExportCSG() { solid->AddSurfaces (self); solid->GiveUpOwner(); - int tlonr = self.SetTopLevelObject (solid->GetSolid(), &surface->GetSolid()->GetPrimitive()->GetSurface()); - self.GetTopLevelObject(tlonr) -> SetMaterial(solid->GetMaterial()); + Surface & surf = surface->GetSolid()->GetPrimitive()->GetSurface(); + int tlonr = self.SetTopLevelObject (solid->GetSolid(), &surf); + // self.GetTopLevelObject(tlonr) -> SetMaterial(solid->GetMaterial()); + self.GetTopLevelObject(tlonr) -> SetBCProp(surf.GetBCProperty()); + self.GetTopLevelObject(tlonr) -> SetBCName(surf.GetBCName()); + self.GetTopLevelObject(tlonr) -> SetRGB(solid->GetRed(),solid->GetGreen(),solid->GetBlue()); self.GetTopLevelObject(tlonr)->SetTransparent(solid->IsTransparent()); }),