Skip to content

Commit

Permalink
More sharing sanity checks
Browse files Browse the repository at this point in the history
Sets the default of the share to false as the default along with an extra check before making a share region. This keeps extra, unneeded share regions from being added.
  • Loading branch information
DoobesURU committed Jun 25, 2022
1 parent a0d94e7 commit 9997b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions korman/properties/modifiers/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ class PlasmaLinkingBookModifier(PlasmaModifierProperties, PlasmaModifierLogicWiz
poll=idprops.poll_mesh_objects)
shareable = BoolProperty(name="Shareable",
description="Enable the Book to be Shareable (MOUL private instance only)",
default=True,
default=False,
options=set())
share_region = PointerProperty(name="Share Region",
description="Sets the share region in which the receiving avatar must stand",
Expand Down Expand Up @@ -482,7 +482,7 @@ def pre_export(self, exporter, bo):
else:
rgn_obj = self.clickable_region

if self.shareable:
if self.shareable and self.link_type == "kOriginalBook":
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.
Expand Down

0 comments on commit 9997b6a

Please sign in to comment.