Skip to content

Adsk Contrib - Avoid possible cycles in transforms#2318

Open
doug-walker wants to merge 3 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:walker/cycle_fix
Open

Adsk Contrib - Avoid possible cycles in transforms#2318
doug-walker wants to merge 3 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:walker/cycle_fix

Conversation

@doug-walker
Copy link
Copy Markdown
Collaborator

This PR prevents cycles in a config from causing a crash by creating an infinite recursion while building a ColorSpaceTransform, DisplayViewTransform, or LookTransform.

Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Signed-off-by: Doug Walker <doug.walker@autodesk.com>
Copy link
Copy Markdown
Collaborator

@remia remia left a comment

Choose a reason for hiding this comment

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

Thanks @doug-walker, looks good to me. If this pattern continue to repeat maybe we can at some point extract the DepthGuard into a utility header and use it consistently (ResolveContextVariablesImpl don't yet) but probably not important with this few cases.

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.

2 participants