From ce122a344cdc801d8dd03a7df1d3288266c47b6b Mon Sep 17 00:00:00 2001 From: Patrick Dulebohn Date: Sun, 11 Dec 2022 16:44:36 -0500 Subject: [PATCH] Fix a few items * Commit suggestions and fixes from Hoikas --- korman/properties/modifiers/logic.py | 9 +++------ korman/ui/modifiers/logic.py | 1 - 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/korman/properties/modifiers/logic.py b/korman/properties/modifiers/logic.py index 6407f40..2b11b1b 100644 --- a/korman/properties/modifiers/logic.py +++ b/korman/properties/modifiers/logic.py @@ -147,18 +147,15 @@ class PlasmaTelescope(PlasmaModifierProperties, PlasmaModifierLogicWiz): type=bpy.types.Object, poll=idprops.poll_mesh_objects) oneshot_object = PointerProperty(name="OneShot", - description="Empty object used to orientate avatar in front of telescope.", + description="Empty object used to orient avatar in front of telescope.", type=bpy.types.Object, poll=idprops.poll_empty_objects) camera_object = PointerProperty(name="Camera", description="Camera used when viewing through telescope.", type=bpy.types.Object, poll=idprops.poll_camera_objects) - telescope_name = StringProperty(name="Name (Optional)", - description="Name for your telescope (optional).", - options=set()) - def LogicWiz(self, bo, tree): + def logicwiz(self, bo, tree): nodes = tree.nodes # Create Python Node @@ -234,5 +231,5 @@ class PlasmaTelescope(PlasmaModifierProperties, PlasmaModifierLogicWiz): telescopestagethreeops.link_output(telescopestagethree, "stage", "stage_settings") telescopename = nodes.new("PlasmaAttribStringNode") - telescopename.value = self.telescope_name + telescopename.value("telescope") telescopename.link_output(telescopepynode, "pfm", "Vignette") diff --git a/korman/ui/modifiers/logic.py b/korman/ui/modifiers/logic.py index 1b9145c..2497c47 100644 --- a/korman/ui/modifiers/logic.py +++ b/korman/ui/modifiers/logic.py @@ -44,7 +44,6 @@ def maintainersmarker(modifier, layout, context): layout.prop(modifier, "calibration") def telescope(modifier, layout, context): - layout.prop(modifier, "telescope_name") layout.prop(modifier, "clickable_object") layout.prop(modifier, "region_object") layout.prop(modifier, "oneshot_object")