Browse Source

Don't make dupe output sockets

pull/10/head
Adam Johnson 10 years ago
parent
commit
ac98661542
  1. 11
      korman/nodes/node_core.py
  2. 5
      korman/nodes/node_responder.py

11
korman/nodes/node_core.py

@ -98,17 +98,6 @@ class PlasmaNodeBase:
def harvest_actors(self):
return set()
def init(self, context):
"""Initializes the sockets as defined on the subclass"""
input_defs, output_defs = self._socket_defs
for defs, sockets in ((input_defs, self.inputs), (output_defs, self.outputs)):
for name, options in defs.items():
assert name.find('.') == -1
socket = sockets.new(options["type"], options["text"], name)
link_limit = options.get("link_limit", None)
if link_limit is not None:
socket.link_limit = link_limit
@property
def key_name(self):
return "{}_{}".format(self.id_data.name, self.name)

5
korman/nodes/node_responder.py

@ -227,11 +227,6 @@ class PlasmaResponderCommandNode(PlasmaNodeBase, bpy.types.Node):
},
}
def init(self, context):
self.inputs.new("PlasmaRespCommandSocket", "Condition", "whodoneit")
self.outputs.new("PlasmaMessageSocket", "Message", "msg").link_limit = 1
self.outputs.new("PlasmaRespCommandSocket", "Trigger", "trigger")
def convert_command(self, exporter, so, responder, commandMgr, waitOn=-1):
# If this command has no message, there is no need to export it...
msgNode = self.find_output("msg")

Loading…
Cancel
Save