From: rnv Date: Tue, 7 Oct 2008 10:46:21 +0000 (+0000) Subject: Fix for bug IPAL17730 (Number of time stamps for animation). X-Git-Tag: V4_1_0_maintainance_20081009~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=28b01155358b4566fe75f2dca00832400be3dc8d;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 36dcc5ac..792e8e4f 100644 --- a/src/VISUGUI/VisuGUI.cxx +++ b/src/VISUGUI/VisuGUI.cxx @@ -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 );