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
3f3d77a3
"doc/vscode:/vscode.git/clone" did not exist on "a9c0cab75d759ebb477aa44718d0eb6b51efb643"
Commit
3f3d77a3
authored
Feb 04, 2023
by
comfyanonymous
Browse files
Fix image node always executing instead of only when the image changed.
parent
4225d1cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.py
main.py
+2
-2
No files found.
main.py
View file @
3f3d77a3
...
...
@@ -89,9 +89,9 @@ def recursive_output_delete_if_changed(prompt, old_prompt, outputs, current_item
is_changed_old
=
''
is_changed
=
''
if
hasattr
(
class_def
,
'IS_CHANGED'
):
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
]:
if
unique_id
in
old_prompt
and
'is_changed'
in
old_prompt
[
unique_id
]:
is_changed_old
=
old_prompt
[
unique_id
][
'is_changed'
]
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
...
...
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