aUseSequenceLayout->setMargin( 11 );
QLabel* anIndicesLbl = new QLabel("Indices", myUseSequenceBox);
- myIndices = new QLineEdit( myUseSequenceBox );
+ myIndices = new QLineEdit( "", myUseSequenceBox );
myValues = new QListBox( myUseSequenceBox );
myValues->setSelectionMode( QListBox::Extended );
//------------------------------------------------------------------------
char* VISU_TimeAnimation::getAnimationSequence()
{
- return (char*)mySequence.latin1();
+ return (char*)(mySequence.isNull() ? "" : mySequence.latin1());
}
//------------------------------------------------------------------------
if (VISU::ScalarMap_i* aPrs = dynamic_cast<VISU::ScalarMap_i*>(aData.myPrs[i]))
anIsFixedRange = aPrs->IsRangeFixed();
}
- aData.myPrs[i]->SameAs(aData.myPrs[0]);
+ if (aData.myPrsType == VISU::TDEFORMEDSHAPEANDSCALARMAP) {
+ if (VISU::DeformedShapeAndScalarMap_i* aDeformedPrs =
+ dynamic_cast<VISU::DeformedShapeAndScalarMap_i*>(aData.myPrs[i])) {
+ //Set correct time stamp number
+ int aTimeStampNum = aDeformedPrs->GetScalarTimeStampNumber();
+ aDeformedPrs->SameAs(aData.myPrs[0]);
+ aDeformedPrs->SetScalarField(aDeformedPrs->GetScalarEntity(),
+ aDeformedPrs->GetScalarFieldName(),
+ aTimeStampNum);
+ }
+ }
+ else
+ aData.myPrs[i]->SameAs(aData.myPrs[0]);
}
}
string aStr = aAnimSObject->GetID();