From 342901087e2bc8524dd9e6220c7f50c63e379c25 Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Thu, 11 May 2023 09:06:43 +0200 Subject: [PATCH] Make the PVViewer active again at ParaVIS activation to avoid a new RenderView being created when a dataset is displayed. No regression observed in PV3DViewer with this change. --- src/PVViewer/PVViewer_ViewWindow.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/PVViewer/PVViewer_ViewWindow.cxx b/src/PVViewer/PVViewer_ViewWindow.cxx index cd8ed9ebc..a724de9b8 100644 --- a/src/PVViewer/PVViewer_ViewWindow.cxx +++ b/src/PVViewer/PVViewer_ViewWindow.cxx @@ -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(pqApplicationCore::instance()->manager("MULTIVIEW_WIDGET")); if (myPVMgr) { SUIT_Application* app = SUIT_Session::session()->activeApplication(); -- 2.39.2