myUseRangeBox->blockSignals( false );
}
+ QString anIndices = myIndices->text();
+ myAnimator->setAnimationSequence( anIndices.latin1() );
+
setIsRegenerate( true );
}
stopAnimation();
SUIT_OverrideCursor c;
+ bool isRegenerate = mySetupDlg->isRegenerate();
+
for (int i = 0; i < myAnimator->getNbFields(); i++) {
FieldData& aFieldData = myAnimator->getFieldData(i);
if( aFieldData.myPrs.empty() )
// ouv : IPAL18064
// even if aFieldData is not empty, we must regenerate presentations,
// when a range or a sequence of the animation has been changed
- if( mySetupDlg->isRegenerate() )
+ if( isRegenerate )
{
VISU::ColoredPrs3d_i* aPrs3d = dynamic_cast<VISU::ColoredPrs3d_i*>(aFieldData.myPrs[0]);
if( !aPrs3d )
aFieldData = myAnimator->getFieldData(i);
for (long aFrameId = 0; aFrameId < aFieldData.myNbFrames; aFrameId++) {
VISU::ColoredPrs3d_i* aColoredPrs3d = aFieldData.myPrs[aFrameId];
+ std::string aTitle = aColoredPrs3d->GetCTitle();
aColoredPrs3d->SameAs(aPrs3d);
if ( aFrameId != 0 && myAnimator->getAnimationMode() == VISU::Animation::SUCCESSIVE ) {
- std::string aTitle = aColoredPrs3d->GetCTitle();
aColoredPrs3d->SetTitle(aTitle.c_str());
}
}
- mySetupDlg->setIsRegenerate( false );
}
}
+ if( isRegenerate )
+ mySetupDlg->setIsRegenerate( false );
if (myAnimator->getNbFrames() == 0) {
myPlayFrame->setEnabled(false);
}
if ( myAnimationMode == VISU::Animation::SUCCESSIVE ) { // successive animation mode
- if ( isRangeDefined() || isSequenceDefined() ) {
- if ( myFieldsAbsFrames.size() == getNbFields() )
- myFieldsAbsFrames.clear();
- if ( theFieldNum > 0 )
- myFieldsAbsFrames.push_back(myFieldsAbsFrames.back() + aData.myNbFrames);
- else
- myFieldsAbsFrames.push_back(aData.myNbFrames);
- }
+ if ( myFieldsAbsFrames.size() == getNbFields() )
+ myFieldsAbsFrames.clear();
+ if ( theFieldNum > 0 )
+ myFieldsAbsFrames.push_back(myFieldsAbsFrames.back() + aData.myNbFrames);
+ else
+ myFieldsAbsFrames.push_back(aData.myNbFrames);
if (theFieldNum == getNbFields() - 1) {
if ( aData.myPrsType != VISU::TGAUSSPOINTS) {