TC: Exception after closing animation dialog
}
} else {
QApplication::setOverrideCursor( Qt::waitCursor );
- FieldData& aData = myAnimator->getFieldData(0);
+ FieldData& aData = myAnimator->getFieldData(myFieldLst->currentItem());
if (aData.myPrs.empty())
- myAnimator->generatePresentations(0);
- VISU_Actor* aActor = aData.myPrs[0]->CreateActor();
+ myAnimator->generatePresentations(myFieldLst->currentItem());
float aBounds[6];
- aActor->GetBounds(aBounds);
- aActor->Delete();
+ aData.myPrs[0]->GetBounds(aBounds);
float aDist = 0;
int aAxis = getAxis();
switch (aAxis) {
if(myAnimator != NULL){
delete myAnimator;
myAnimator = NULL;
+ VISU::GetActiveViewWindow<SVTK_ViewWindow>(myModule)->Repaint();
}
}