if (aFirstCall) {
// to be sure that plugins are loaded,
// even before the first "createFeature" call (in unit tests)
+
LoadPluginsInfo();
// creation of the root document is always outside of the transaction, so, avoid checking it
setCheckTransactions(false);
bool aWasChecked = myCheckTransactions;
setCheckTransactions(false);
TDF_LabelList anEmptyUpdated;
- aDoc->objects()->synchronizeFeatures(anEmptyUpdated, true, true, true);
+ aDoc->objects()->synchronizeFeatures(anEmptyUpdated, true, true, false, true);
if (aWasChecked)
setCheckTransactions(true);
}
TDF_CopyTool::Copy(aDS, aRT);
TDF_LabelList anEmptyUpdated;
- aNew->objects()->synchronizeFeatures(anEmptyUpdated, true, true, true);
+ aNew->objects()->synchronizeFeatures(anEmptyUpdated, true, true, true, true);
return aNew;
}
{
if (myPluginsInfoLoaded) // nothing to do
return;
-
+ Config_ModuleReader::loadScript("salome.shaper.initConfig");
// Read plugins information from XML files
Config_ModuleReader aModuleReader(Config_FeatureMessage::MODEL_EVENT());
aModuleReader.readAll();
{
return ROOT_DOC->transactionID();
}
-
-void Model_Session::forceLoadPlugin(const std::string& thePluginName)
-{
- // load all information about plugins, features and attributes
- LoadPluginsInfo();
-
- // store name of current plugin for further restoring,
- // because forceLoadPlugin may be called while loading another plugin
- std::string aCurrentPluginName = myCurrentPluginName;
-
- myCurrentPluginName = thePluginName;
- if (myPluginObjs.find(myCurrentPluginName) == myPluginObjs.end()) {
- // load plugin library if not yet done
- Config_ModuleReader::loadPlugin(myCurrentPluginName);
- }
-
- // restore current plugin
- myCurrentPluginName = aCurrentPluginName;
-}