From d474c4ef6856b7d2d8eddcdcb8ab3067ccef3041 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Wed, 28 Aug 2024 16:08:21 -0400 Subject: [PATCH] Add gui page type * Adds the gui page reference to pl_page_types for modifier properties (this fix excludes external for obvious reasons) --- korman/properties/modifiers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/properties/modifiers/base.py b/korman/properties/modifiers/base.py index 5fee595..e438cef 100644 --- a/korman/properties/modifiers/base.py +++ b/korman/properties/modifiers/base.py @@ -32,7 +32,7 @@ class PlasmaModifierProperties(bpy.types.PropertyGroup): @property def allowed(self) -> bool: """Returns if this modifier is allowed to be enabled on the owning Object""" - allowed_page_types = getattr(self, "pl_page_types", {"room"}) + allowed_page_types = getattr(self, "pl_page_types", {"room", "gui"}) allowed_object_types = getattr(self, "bl_object_types", set()) page_name = self.id_data.plasma_object.page if not allowed_object_types or self.id_data.type in allowed_object_types: