+ fixes #0001318: Crash when exporting .step file
This commit is contained in:
parent
3986c887c3
commit
629d5cc1fe
|
@ -279,6 +279,8 @@ ExportOCAF::ExportOCAF(Handle_TDocStd_Document h)
|
||||||
void ExportOCAF::saveShape(Part::Feature* part, const std::vector<App::Color>& colors)
|
void ExportOCAF::saveShape(Part::Feature* part, const std::vector<App::Color>& colors)
|
||||||
{
|
{
|
||||||
const TopoDS_Shape& shape = part->Shape.getValue();
|
const TopoDS_Shape& shape = part->Shape.getValue();
|
||||||
|
if (shape.IsNull())
|
||||||
|
return;
|
||||||
|
|
||||||
// Add shape and name
|
// Add shape and name
|
||||||
//TDF_Label shapeLabel = hShapeTool->AddShape(shape, Standard_False);
|
//TDF_Label shapeLabel = hShapeTool->AddShape(shape, Standard_False);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user