diff --git a/src/cli/cli_export.cpp b/src/cli/cli_export.cpp index 787612bd..b353d2ee 100644 --- a/src/cli/cli_export.cpp +++ b/src/cli/cli_export.cpp @@ -95,11 +95,14 @@ bool importInDocument(DocumentPtr doc, const CliExportArgs& args, Helper* helper { auto appModule = AppModule::get(); - // If export operation targets some mesh format then force meshing of imported BRep shapes + // If export operation targets some mesh format then force meshing of imported BRep shapes. + // Image export also requires a mesh: GraphicsShapeObjectDriver disables auto-triangulation, so + // without an explicit mesh the BRep shapes have no triangulation to shade and are rendered as + // wireframe only. bool brepMeshRequired = false; for (const FilePath& filepath : args.filesToExport) { const IO::Format format = appModule->ioSystem()->probeFormat(filepath); - brepMeshRequired = IO::formatProvidesMesh(format); + brepMeshRequired = IO::formatProvidesMesh(format) || format == IO::Format_Image; if (brepMeshRequired) break; // Interrupt }