diff --git a/pcbnew/exporters/step/step_pcb_model.cpp b/pcbnew/exporters/step/step_pcb_model.cpp index 01d8ce2531..7ce111d9e5 100644 --- a/pcbnew/exporters/step/step_pcb_model.cpp +++ b/pcbnew/exporters/step/step_pcb_model.cpp @@ -673,10 +673,13 @@ static TopoDS_Compound makeCompound( auto& aInputShapes ) // Try to fuse shapes. If that fails, just add them to a compound -static TopoDS_Shape fuseShapesOrCompound( auto& aInputShapes ) +static TopoDS_Shape fuseShapesOrCompound( TopTools_ListOfShape& aInputShapes ) { TopoDS_Shape outShape; + if( aInputShapes.Size() == 1 ) + return aInputShapes.First(); + if( fuseShapes( aInputShapes, outShape ) ) return outShape;