]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL14106 : Incorrect name of the saved snapshots of the animation.
authormkr <mkr@opencascade.com>
Wed, 6 Dec 2006 10:07:06 +0000 (10:07 +0000)
committermkr <mkr@opencascade.com>
Wed, 6 Dec 2006 10:07:06 +0000 (10:07 +0000)
src/VISU_I/VISU_TimeAnimation.cxx

index 711a86e3816d2852bec3ccab3249c8af6522bd94..e65ade37526dd294ef89fae017fa078f2ce49ab0 100644 (file)
@@ -1212,7 +1212,13 @@ void VISU_TimeAnimation::saveImages( int theFieldId,
 {
   if (myDumpFormat.compare("AVI") != 0) {
     QString aFile(myDumpPath);
-    QString aName = QString("%1").arg(myFieldsLst[theFieldId].myTiming[myFrame]);
+
+    QString aName;
+    if ( myAnimationMode == 0 ) // parallel animation mode
+      aName = QString("%1").arg(myFieldsLst[theFieldId].myTiming[myFrame]);
+    else // successive animation mode
+      aName = QString("%1").arg(myFieldsLst[theFieldId].myTiming[getRelativeFrameNumber(myFrame).second]);
+
     int aPos = -1;
     while ((aPos = aName.find(".")) > -1 )
       aName.replace(aPos, 1, "_");