+ fixes #0001318: Crash when exporting .step file

This commit is contained in:
wmayer 2014-03-02 18:16:16 +01:00
parent 3986c887c3
commit 629d5cc1fe

View File

@ -279,6 +279,8 @@ ExportOCAF::ExportOCAF(Handle_TDocStd_Document h)
void ExportOCAF::saveShape(Part::Feature* part, const std::vector<App::Color>& colors)
{
const TopoDS_Shape& shape = part->Shape.getValue();
if (shape.IsNull())
return;
// Add shape and name
//TDF_Label shapeLabel = hShapeTool->AddShape(shape, Standard_False);