App: Provide temporary document creation flag to Python App.loadDocument.

This commit is contained in:
tritao
2025-01-19 16:05:29 +00:00
committed by Chris Hennes
parent 299123b9de
commit ff8e99f385
6 changed files with 57 additions and 35 deletions

View File

@@ -411,7 +411,10 @@ App::Document* ImportOCAF2::getDocument(App::Document* doc, TDF_Label label)
return doc;
}
auto newDoc = App::GetApplication().newDocument(name.c_str(), name.c_str(), false);
App::DocumentCreateFlags createFlags;
createFlags.createView = false;
auto newDoc = App::GetApplication().newDocument(name.c_str(), name.c_str(), createFlags);
std::ostringstream ss;
Base::FileInfo fi(doc->FileName.getValue());
std::string path = fi.dirPath();