mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030180: Data Exchange - VrmlAPI_Writer is expected to return export state
The VrmlAPI_Writer::WriteDoc() and VrmlAPI_Writer::Write() methods now return the export state.
This commit is contained in:
@@ -532,7 +532,10 @@ static Standard_Integer writevrml
|
||||
case 2: writer.SetRepresentation(VrmlAPI_BothRepresentation); break;
|
||||
}
|
||||
|
||||
writer.Write(aShape, argv[2], aVersion);
|
||||
if (!writer.Write(aShape, argv[2], aVersion))
|
||||
{
|
||||
di << "Error: File " << argv[2] << " was not written\n";
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user