Fix build with OCC 7.5.x
This commit is contained in:
parent
f8a25d20f8
commit
d00cda3b2f
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue