Part: fixes #6282: exportStep breaking model
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user