From c76f395414d3d1c1a21d1b6968672742788f2748 Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Fri, 1 Jul 2022 16:38:26 -0400 Subject: [PATCH] Add share property Add new @property per Hoikas' suggestion --- korman/properties/modifiers/gui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/korman/properties/modifiers/gui.py b/korman/properties/modifiers/gui.py index d41d1bd..966280a 100644 --- a/korman/properties/modifiers/gui.py +++ b/korman/properties/modifiers/gui.py @@ -490,7 +490,11 @@ class PlasmaLinkingBookModifier(PlasmaModifierProperties, PlasmaModifierLogicWiz else: rgn_obj = self.clickable_region - if self.shareable and self.link_type == "kOriginalBook": + @property + def export_share_region(self) -> bool: + return self.shareable and self.link_type == "kOriginalBook" + + if self.export_share_region: if self.share_region is None: with utils.bmesh_object("{}_LinkingBook_ShareRgn".format(self.key_name)) as (share_region, bm): # Generate a cube for the share region.