std::string aSComponentEntry = aSComponent->GetID();
QString aComment;
- aComment.sprintf("myComment=ANIMATION;myTimeMinVal=%g;myTimeMaxVal=%g;myMode=%d",
+ aComment.sprintf("myComment=ANIMATION;myTimeMinVal=%g;myTimeMaxVal=%g;mySequence=%s;myMode=%d",
myTimeMinVal,
myTimeMaxVal,
mySequence.latin1(),
VISU::Storable::TRestoringMap aPrsMap = VISU::Storable::GetStorableMap(aPrsObj);
if (aPrsMap.empty())
continue;
- aData.myPrs[0]->Restore(VISU::GetSObject(aData.myField), aPrsMap);
- aData.myPrs[0]->GetOffset(aData.myOffset);
+ if (aData.myPrs[0]) {
+ aData.myPrs[0]->Restore(VISU::GetSObject(aData.myField), aPrsMap);
+ aData.myPrs[0]->GetOffset(aData.myOffset);
+ }
for (int i = 1; i < aData.myNbFrames; i++) {
+ if (!aData.myPrs[0])
+ continue;
bool anIsFixedRange = false;
if (aData.myPrsType != VISU::TGAUSSPOINTS) {
if (VISU::ScalarMap_i* aPrs = dynamic_cast<VISU::ScalarMap_i*>(aData.myPrs[i]))
CORBA::Boolean VISU_TimeAnimation_i::isSequenceDefined()
{
- return myAnim->isRangeDefined();
+ return myAnim->isSequenceDefined();
}
void VISU_TimeAnimation_i::dumpTo (const char* thePath)