Fix build with OCC 7.5.x

This commit is contained in:
aris-kimi 2024-04-18 19:53:35 +03:00 committed by dsa-t
parent f8a25d20f8
commit d00cda3b2f
1 changed files with 6 additions and 1 deletions

View File

@ -1374,7 +1374,12 @@ bool STEP_PCB_MODEL::WriteBREP( const wxString& aFileName )
wxFFileOutputStream ffStream( fn.GetFullPath() );
wxStdOutputStream stdStream( ffStream );
#if OCC_VERSION_HEX >= 0x070600
BRepTools::Write( shape, stdStream, false, false, TopTools_FormatVersion_VERSION_1 );
#else
BRepTools::Write( shape, stdStream );
#endif
}
return true;
@ -1965,4 +1970,4 @@ bool STEP_PCB_MODEL::WriteGLTF( const wxString& aFileName )
wxSetWorkingDirectory( currCWD );
return success;
}
}