From e703ad75af1678629e9083c4757da854650d9bcc Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Mon, 11 Oct 2021 12:47:16 +0200 Subject: [PATCH] Allow OCCGeometry.Heal without face_colours (if built in py) --- libsrc/occ/occgeom.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libsrc/occ/occgeom.cpp b/libsrc/occ/occgeom.cpp index 1ceeddff..5d33eb19 100644 --- a/libsrc/occ/occgeom.cpp +++ b/libsrc/occ/occgeom.cpp @@ -411,7 +411,8 @@ namespace netgen // Set the original colour of the face to the newly created // face (after the healing process) face = TopoDS::Face (exp0.Current()); - face_colours->SetColor(face,face_colour,XCAFDoc_ColorSurf); + if(face_colours) + face_colours->SetColor(face,face_colour,XCAFDoc_ColorSurf); } shape = rebuild->Apply(shape); }