mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0029195: OCAF - ensure thread safety for different documents.
OCAF persistence architecture modification to satisfy multi-threading criteria.
This commit is contained in:
@@ -510,12 +510,11 @@ void TObjDRAW::Init(Draw_Interpretor& di)
|
||||
void TObjDRAW::Factory(Draw_Interpretor& theDI)
|
||||
{
|
||||
// Initialize TObj OCAF formats
|
||||
Handle(TDocStd_Application) anApp = DDocStd::GetApplication();
|
||||
Handle(TDocStd_Application) anApp = TObj_Application::GetInstance();//DDocStd::GetApplication();
|
||||
BinTObjDrivers::DefineFormat(anApp);
|
||||
XmlTObjDrivers::DefineFormat(anApp);
|
||||
|
||||
// define formats for TObj specific application
|
||||
anApp = TObj_Application::GetInstance();
|
||||
BinTObjDrivers::DefineFormat(anApp);
|
||||
XmlTObjDrivers::DefineFormat(anApp);
|
||||
|
||||
|
Reference in New Issue
Block a user