Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed starting nodes not running after clearing #974

Merged
merged 2 commits into from
Sep 16, 2022

Conversation

RunDevelopment
Copy link
Member

If you cleared a Load Image node with a selected image and then selected the same image again, then the node wouldn't run again and display no image preview.

This was because the lastInputHash was only updated when running a node. Since nodes without all required inputs can't be run, the runRunNode hook basically ignored that the node was cleared.

The fix is pretty simple. We just always update lastInputHash, even if we aren't going to run the node.

@joeyballentine
Copy link
Member

Sweet, this should make it so I can finish my file watcher stuff

@joeyballentine joeyballentine merged commit ec84f42 into chaiNNer-org:main Sep 16, 2022
@RunDevelopment RunDevelopment deleted the run-after-clear branch September 16, 2022 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants