Experimental change. Free objects we no longer need.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2019-07-13 16:57:27 +03:00
parent 979d5bd6ae
commit c9d68f9ea6

View File

@ -5339,6 +5339,12 @@ bool MainWindow::DoExport(const VCommandLinePtr &expParams)
} }
listDetails = PrepareDetailsForLayout(details); listDetails = PrepareDetailsForLayout(details);
if (not VApplication::IsGUIMode())
{
sceneDraw->clear();
sceneDetails->clear();
}
const bool exportOnlyDetails = expParams->IsExportOnlyDetails(); const bool exportOnlyDetails = expParams->IsExportOnlyDetails();
if (exportOnlyDetails) if (exportOnlyDetails)
{ {