Browse Source

Fix a few items

* Commit suggestions and fixes from Hoikas
pull/354/head
Patrick Dulebohn 2 years ago committed by Adam Johnson
parent
commit
ce122a344c
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 9
      korman/properties/modifiers/logic.py
  2. 1
      korman/ui/modifiers/logic.py

9
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")

1
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")

Loading…
Cancel
Save