]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Minor: removed fixAnimationScene() which is actually not needed.
authorabn <adrien.bruneton@cea.fr>
Wed, 18 Mar 2015 10:17:23 +0000 (11:17 +0100)
committerabn <adrien.bruneton@cea.fr>
Wed, 18 Mar 2015 10:17:23 +0000 (11:17 +0100)
src/PVGUI/PVGUI_Module.cxx

index 54abb5bf1ec3550ca046659b282900f873fae547..f7a5860bc7d0e2509b285b50dd34bb04667a80f3 100644 (file)
@@ -441,20 +441,6 @@ void PVGUI_Module::initialize( CAM_Application* app )
       }
     }
   }
-  fixAnimationScene();
-}
-
-/*!
- * Little trick to force the proper update of the timesteps/time range when the module is initialized.
- * This is otherwise not properly working when PARAVIS is activated after a PVViewer has already been
- * instanciated.
- */
-void PVGUI_Module::fixAnimationScene()
-{
-  pqServer* server = pqActiveObjects::instance().activeServer();
-  pqApplicationCore * app = pqApplicationCore::instance();
-  pqPipelineSource * src = app->getObjectBuilder()->createSource(QString("sources"), QString("TimeSource"),server);
-  app->getObjectBuilder()->destroy(src);
 }
 
 /*!