Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
3444ffff
Commit
3444ffff
authored
Mar 27, 2023
by
comfyanonymous
Browse files
Fix IS_CHANGED not working on nodes with an input from another node.
parent
bb1503ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
execution.py
execution.py
+6
-3
No files found.
execution.py
View file @
3444ffff
...
...
@@ -18,6 +18,8 @@ def get_input_data(inputs, class_def, outputs={}, prompt={}, extra_data={}):
if
isinstance
(
input_data
,
list
):
input_unique_id
=
input_data
[
0
]
output_index
=
input_data
[
1
]
if
input_unique_id
not
in
outputs
:
return
None
obj
=
outputs
[
input_unique_id
][
output_index
]
input_data_all
[
x
]
=
obj
else
:
...
...
@@ -94,9 +96,10 @@ def recursive_output_delete_if_changed(prompt, old_prompt, outputs, current_item
if
unique_id
in
old_prompt
and
'is_changed'
in
old_prompt
[
unique_id
]:
is_changed_old
=
old_prompt
[
unique_id
][
'is_changed'
]
if
'is_changed'
not
in
prompt
[
unique_id
]:
input_data_all
=
get_input_data
(
inputs
,
class_def
)
is_changed
=
class_def
.
IS_CHANGED
(
**
input_data_all
)
prompt
[
unique_id
][
'is_changed'
]
=
is_changed
input_data_all
=
get_input_data
(
inputs
,
class_def
,
outputs
)
if
input_data_all
is
not
None
:
is_changed
=
class_def
.
IS_CHANGED
(
**
input_data_all
)
prompt
[
unique_id
][
'is_changed'
]
=
is_changed
else
:
is_changed
=
prompt
[
unique_id
][
'is_changed'
]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment