diff --git a/src/Mod/Part/App/TopoShape.cpp b/src/Mod/Part/App/TopoShape.cpp index 115dd625aa..5cecc40b30 100644 --- a/src/Mod/Part/App/TopoShape.cpp +++ b/src/Mod/Part/App/TopoShape.cpp @@ -395,7 +395,7 @@ TopoDS_Shape TopoShape::getSubShape(TopAbs_ShapeEnum type, int index, bool silen unsigned long TopoShape::countSubShapes(const char* Type) const { - if(!Type) + if(!Type) return 0; if(strcmp(Type,"SubShape")==0) return countSubShapes(TopAbs_SHAPE); @@ -990,6 +990,10 @@ void TopoShape::exportIges(const char *filename) const void TopoShape::exportStep(const char *filename) const { try { + // Fixes issue #6282 + // Do not write out any assembly information when using the simplified STEP export + Interface_Static::SetIVal("write.step.assembly", 0); + // write step file STEPControl_Writer aWriter;