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

Loop improvements #5912

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

johnhaddon
Copy link
Member

This provides some groundwork for the upcoming context tracking utility I'm working on. This will generalise the "active branch highlighting" feature from the GraphEditor into something that also provides sensible evaluation contexts for active nodes. In the GraphEditor, we currently punt when we hit a Loop and just evaluate nodes in the loop body with a fallback context. I don't think that's going to cut it for the more general feature, so my intention is to evaluate the loop body once in the context corresponding to the first iteration of the loop. This PR adds a nextIterationContext() method to facilitate that, and also fixes a corner case in the index variable handling.

This now disables the Loop, instead of creating a context variable with an empty name.
@johnhaddon johnhaddon self-assigned this Jun 20, 2024
Copy link
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@murraystevenson murraystevenson merged commit 0244724 into GafferHQ:1.4_maintenance Jun 20, 2024
5 checks passed
@johnhaddon johnhaddon deleted the loopImprovements branch August 7, 2024 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants