From: rnv Date: Tue, 7 Oct 2008 10:47:32 +0000 (+0000) Subject: Fix for bug IPAL17730 (Number of time stamps for animation). X-Git-Tag: V5_1_0a3~18 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ab53ea1b6de5593fe5ea8145eefcde0b17d713f0;p=modules%2Fvisu.git Fix for bug IPAL17730 (Number of time stamps for animation). --- diff --git a/src/VISUGUI/VisuGUI.cxx b/src/VISUGUI/VisuGUI.cxx index 54906ff2..5c07f191 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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 );