// 0020001 PTv, check for critical functions, which require dump of objects
if (theIsPublished)
{
- // currently, there is only one function "RestoreGivenSubShapes",
- // later this check could be replaced by iterations on list of such functions
- if (aDescr.Search( "RestoreGivenSubShapes" ) != -1)
- theIsDumpCollected = true;
- else if (aDescr.Search( "RestoreSubShapes" ) != -1)
+ if (aDescr.Search("RestoreGivenSubShapes") != -1 ||
+ aDescr.Search("RestoreSubShapes") != -1 ||
+ // Publish right after import, to prevent broken linkage with possible child objects.
+ // If we create a group of sub-objects from an imported brep before the source was published,
+ // the group will be displayed as unrelated to a source in the Salome object browser.
+ aDescr.Search("ImportBREP") != -1)
+ {
theIsDumpCollected = true;
+ }
}
//Replace parameter by notebook variables