::GetMTime()
{
unsigned long int aTime = myParamsTime.GetMTime();
- if(IsPipeLineExists()){
+ if(IsPipeLineExists())
aTime = std::max(aTime,GetPipeLine()->GetMTime());
- // To correct modification time by actors
- int anEnd = myActorCollection->GetNumberOfItems();
- for(int anId = 0; anId < anEnd; anId++)
- if(vtkObject* anObject = myActorCollection->GetItemAsObject(anId))
- aTime = std::max(aTime,anObject->GetMTime());
- }
return aTime;
}
::SaveRestoringState(SALOMEDS::Study_ptr theStudy,
const Storable::TRestoringMap& theMap)
{
- myRestoringStudy = theStudy;
+ myRestoringStudy = SALOMEDS::Study::_duplicate(theStudy);
myRestoringMap = theMap;
myIsRestored = false;
}