]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Implementation of the "0023270: [CEA 1822] PARAVIS GUI widgets should be instanciated...
authorrnv <rnv@opencascade.com>
Thu, 9 Jun 2016 15:07:17 +0000 (18:07 +0300)
committerrnv <rnv@opencascade.com>
Thu, 9 Jun 2016 15:07:17 +0000 (18:07 +0300)
src/PVGUI/PVGUI_Module_widgets.cxx

index 4eb1835c58d97d396f7c1495b499f46563f02009..4e1fef2e41219c06c81bf39bf5036409c699d6ae 100644 (file)
@@ -56,6 +56,8 @@
 #include <pqProgressWidget.h>
 #include <pqProgressManager.h>
 #include <pqPropertiesPanel.h>
+#include <pqPVApplicationCore.h>
+#include <pqAnimationManager.h>
 
 #include <pqApplicationCore.h>
 #include <pqPluginManager.h>
@@ -238,6 +240,11 @@ void PVGUI_Module::setupDockWidgets()
   animationViewDock->setObjectName("animationViewDock");
   desk->addDockWidget( Qt::BottomDockWidgetArea, animationViewDock );
   pqPVAnimationWidget* animation_panel = new ResizeHelper(animationViewDock); // [ABN] was resizeHelper
+
+  // RNV: Emit signal in order to make sure that animation scene is set
+  emit pqPVApplicationCore::instance()->animationManager()->activeSceneChanged(
+     pqPVApplicationCore::instance()->animationManager()->getActiveScene());
+
   animationViewDock->setWidget(animation_panel);
   myDockWidgets[animationViewDock] = false; // hidden by default