Add non-main dashboard as a propertyowner for a ScreenSpaceDashboard

This commit is contained in:
Alexander Bock
2024-07-15 18:54:49 +02:00
parent c0f85857d4
commit 065d73db64

View File

@@ -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) {