mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-08-16 04:43:30 +08:00
Improve execution UX.
Some branches with VAELoader -> VAEDecode -> Preview were being executed last. With this change they will be executed earlier.
This commit is contained in:
parent
03c874ec6e
commit
5c270c22e1
@ -202,8 +202,14 @@ class ExecutionList(TopologicalSort):
|
||||
if is_output(blocked_node_id):
|
||||
return node_id
|
||||
|
||||
#Do we want to look deeper?
|
||||
#This should handle the VAELoader -> VAEDecode -> preview case
|
||||
for node_id in node_list:
|
||||
for blocked_node_id in self.blocking[node_id]:
|
||||
for blocked_node_id1 in self.blocking[blocked_node_id]:
|
||||
if is_output(blocked_node_id1):
|
||||
return node_id
|
||||
|
||||
#TODO: this function should be improved
|
||||
return node_list[0]
|
||||
|
||||
def unstage_node_execution(self):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user