From 065d73db641ed974bd66bb382c88e97da8be6e40 Mon Sep 17 00:00:00 2001 From: Alexander Bock Date: Mon, 15 Jul 2024 18:54:49 +0200 Subject: [PATCH] Add non-main dashboard as a propertyowner for a ScreenSpaceDashboard --- modules/base/rendering/screenspacedashboard.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/base/rendering/screenspacedashboard.cpp b/modules/base/rendering/screenspacedashboard.cpp index 1e32157e71..e6ad767d9a 100644 --- a/modules/base/rendering/screenspacedashboard.cpp +++ b/modules/base/rendering/screenspacedashboard.cpp @@ -92,6 +92,10 @@ ScreenSpaceDashboard::ScreenSpaceDashboard(const ghoul::Dictionary& dictionary) throw ghoul::RuntimeError("Cannot specify items when using the main dashboard"); } + if (!_useMainDashboard) { + addPropertySubOwner(_dashboard); + } + if (p.items.has_value()) { ghoul_assert(_useMainDashboard, "Cannot add items to the main dashboard"); for (const ghoul::Dictionary& item : *p.items) {