Skip to content

Commit

Permalink
+ fixes #1318: Crash when exporting .step file
Browse files Browse the repository at this point in the history
  • Loading branch information
wwmayer committed Mar 2, 2014
1 parent 3986c88 commit 629d5cc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/Import/App/ImportOCAF.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 629d5cc

Please sign in to comment.