From bae8ad28d17210871104a897c1800300822c3453 Mon Sep 17 00:00:00 2001 From: Joseph Davies Date: Thu, 23 Aug 2018 20:27:22 -0700 Subject: [PATCH] Fix Volume Sensor typos. --- korman/nodes/node_conditions.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/korman/nodes/node_conditions.py b/korman/nodes/node_conditions.py index 8f87474..f5ca156 100644 --- a/korman/nodes/node_conditions.py +++ b/korman/nodes/node_conditions.py @@ -298,7 +298,7 @@ class PlasmaFacingTargetSocket(PlasmaNodeSocketBase, bpy.types.NodeSocket): class PlasmaVolumeReportNode(PlasmaNodeBase, bpy.types.Node): bl_category = "CONDITIONS" - bl_idname = "PlasmaVoumeReportNode" + bl_idname = "PlasmaVolumeReportNode" bl_label = "Region Trigger Settings" report_when = EnumProperty(name="When", @@ -308,7 +308,7 @@ class PlasmaVolumeReportNode(PlasmaNodeBase, bpy.types.Node): ("count", "Population", "When the region has a certain number of objects inside it")]) threshold = IntProperty(name="Threshold", description="How many objects should be in the region for it to trigger", - min=1) + min=0) output_sockets = OrderedDict([ ("settings", { @@ -468,7 +468,7 @@ class PlasmaVolumeSensorNode(idprops.IDPropObjectMixin, PlasmaNodeBase, bpy.type if settings is not None: if settings.report_when == "first": volsens.first = True - elif settings.report_when == "threshold": + elif settings.report_when == "count": volsens.trigNum = settings.threshold # There appears to be a mandatory order for these keys...