App: Provide temporary document creation flag to Python App.loadDocument.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user