1
0
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:
mzernova
2019-09-16 13:44:02 +03:00
committed by bugmaster
parent 1f44d29a0f
commit c42ef16585
6 changed files with 45 additions and 22 deletions

View File

@@ -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;
}