Skip to content

Commit

Permalink
script generation speedup: 0.5875s -> 0.2345s
Browse files Browse the repository at this point in the history
  • Loading branch information
JacquesLucke committed Oct 22, 2014
1 parent 352bdda commit 399dae8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mn_network_code_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,9 @@ def getAllNodeDependencies(node):
def getDirectDependencies(node):
directDependencies = []
for socket in node.inputs:
if hasLinks(socket):
node = socket.links[0].from_node
originSocket = getDataOriginSocket(socket)
if originSocket is not None:
node = originSocket.node
directDependencies.append(node)
return directDependencies

Expand Down

0 comments on commit 399dae8

Please sign in to comment.