From c8c4686543f200a2feb1bfaf5b0ef2e11a4fd90f Mon Sep 17 00:00:00 2001 From: wmayer Date: Mon, 11 Apr 2022 11:58:57 +0200 Subject: [PATCH] Part: fixes #6282: exportStep breaking model --- src/Mod/Part/App/TopoShape.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;