]> 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:46:21 +0000 (10:46 +0000)
committerrnv <rnv@opencascade.com>
Tue, 7 Oct 2008 10:46:21 +0000 (10:46 +0000)
src/VISUGUI/VisuGUI.cxx

index 36dcc5acaf73c6d35734924f65eb88b2974f74aa..792e8e4ff06f8885e833908c36471ce47120e1fc 100644 (file)
@@ -2871,9 +2871,9 @@ VisuGUI
   aRule += " and activeView in {'VTKViewer' 'VVTK'}";
   mgr->setRule( action( VISU_PARALLELANIMATION ), aRule, true );
 
-  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' 'VVTK'}";
   mgr->setRule( action( VISU_SUCCCESSIVEANIMATION ), aRule, true );