Salome HOME
Make the PVViewer active again at ParaVIS activation to avoid a new RenderView being...
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Thu, 11 May 2023 07:06:43 +0000 (09:06 +0200)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Thu, 11 May 2023 07:06:43 +0000 (09:06 +0200)
No regression observed in PV3DViewer with this change.

src/PVViewer/PVViewer_ViewWindow.cxx

index cd8ed9ebc388bc14eda22c124adb89bbb8b13100..a724de9b834b30ed894b4cbaf04cba054a404f3d 100644 (file)
@@ -50,7 +50,11 @@ PVViewer_ViewWindow::PVViewer_ViewWindow( SUIT_Desktop* theDesktop, PVViewer_Vie
   myDesktop = theDesktop;
   myModel = theModel;
   setViewManager(myModel->getViewManager());
-  pqActiveObjects::instance().setActiveView(nullptr);
+  // This may improve synchronization between PV3DViewer and PVViewer
+  // but this make the PVViewer not active when ParaVIS is launched,
+  // which results in a new RenderView being created when a dataset is displayed.
+  // So we comment it for now.
+  //pqActiveObjects::instance().setActiveView(nullptr);
   myPVMgr = qobject_cast<pqTabbedMultiViewWidget*>(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET"));
   if (myPVMgr) {
     SUIT_Application* app = SUIT_Session::session()->activeApplication();