Browse Source

Fix redundant Responder wait generation

pull/43/head
Adam Johnson 8 years ago
parent
commit
590eb59d7f
  1. 2
      korman/nodes/node_responder.py

2
korman/nodes/node_responder.py

@ -257,7 +257,7 @@ class PlasmaResponderCommandNode(PlasmaNodeBase, bpy.types.Node):
# If we have child commands, we need to make sure that we support chaining this message as a callback # If we have child commands, we need to make sure that we support chaining this message as a callback
# If not, we'll export our children and tell them to not actually wait on us. # If not, we'll export our children and tell them to not actually wait on us.
haveChildren = self.find_output("trigger", "PlasmaResponderCommandNode") is not None or \ haveChildren = self.find_output("trigger", "PlasmaResponderCommandNode") is not None or \
self.find_outputs("reenable") self.find_output("reenable") is not None
if msgNode.has_callbacks and haveChildren: if msgNode.has_callbacks and haveChildren:
childWaitOn = commandMgr.add_wait(idx) childWaitOn = commandMgr.add_wait(idx)
msgNode.convert_callback_message(exporter, so, msg, responder.key, childWaitOn) msgNode.convert_callback_message(exporter, so, msg, responder.key, childWaitOn)

Loading…
Cancel
Save