]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL17730 (Number of time stamps for animation).
authorrnv <rnv@opencascade.com>
Tue, 7 Oct 2008 10:47:32 +0000 (10:47 +0000)
committerrnv <rnv@opencascade.com>
Tue, 7 Oct 2008 10:47:32 +0000 (10:47 +0000)
src/VISUGUI/VisuGUI.cxx

index 54906ff27cbb34fbcce0aadfc4c6dd84404c2c80..5c07f191e48141cd8f55b6654f3ed363822764c4 100644 (file)
@@ -2927,9 +2927,9 @@ VisuGUI
   aRule += " and activeView in {'VTKViewer' 'SVTK'}";
   mgr->setRule( action( VISU_PARALLELANIMATION ), aRule );
 
-  aRule = "client='ObjectBrowser' and selcount>0";
+  aRule = "client='ObjectBrowser'";
+  aRule += " and (selcount=1 and nbTimeStamps>1 or selcount>1 and nbTimeStamps>0)";
   aRule += " and $type in {'VISU::TFIELD'}";
-  aRule += " and nbTimeStamps>0";
   aRule += " and activeView in {'VTKViewer' 'SVTK'}";
   mgr->setRule( action( VISU_SUCCCESSIVEANIMATION ), aRule );