Browse Source

Add share property

Add new @property per Hoikas' suggestion
pull/335/head
Patrick Dulebohn 2 years ago
parent
commit
c76f395414
  1. 6
      korman/properties/modifiers/gui.py

6
korman/properties/modifiers/gui.py

@ -490,7 +490,11 @@ class PlasmaLinkingBookModifier(PlasmaModifierProperties, PlasmaModifierLogicWiz
else: else:
rgn_obj = self.clickable_region 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: if self.share_region is None:
with utils.bmesh_object("{}_LinkingBook_ShareRgn".format(self.key_name)) as (share_region, bm): with utils.bmesh_object("{}_LinkingBook_ShareRgn".format(self.key_name)) as (share_region, bm):
# Generate a cube for the share region. # Generate a cube for the share region.

Loading…
Cancel
Save