Allow OCCGeometry.Heal without face_colours (if built in py)

This commit is contained in:
Christopher Lackner 2021-10-11 12:47:16 +02:00
parent 41d9fbf258
commit e703ad75af

View File

@ -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);
}