From 93026d331bef1344a08132d5df7ccce5f677e646 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Fri, 9 Dec 2022 11:57:23 +0100 Subject: [PATCH] fix #1331 --- src/meshlab/mainwindow_RunTime.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/meshlab/mainwindow_RunTime.cpp b/src/meshlab/mainwindow_RunTime.cpp index f800af3cd..9f7ec0710 100644 --- a/src/meshlab/mainwindow_RunTime.cpp +++ b/src/meshlab/mainwindow_RunTime.cpp @@ -1724,7 +1724,12 @@ bool MainWindow::openProject(QString fileName, bool append) } meshDoc()->setBusy(false); - if(this->GLA() == 0) return false; + + // here we update the visibility of all the meshes. + // yet another workaround for a problem that would be easy to solve in a well structured + // codebase. + if(this->GLA() == 0) return false; + else GLA()->updateMeshSetVisibilities(); MultiViewer_Container* mvc = currentViewContainer(); if (mvc != NULL)