Skip to content

Adsk Contrib - Avoid possible cycles in transforms#2318

Merged
doug-walker merged 3 commits into
AcademySoftwareFoundation:mainfrom
autodesk-forks:walker/cycle_fix
Jun 9, 2026
Merged

Adsk Contrib - Avoid possible cycles in transforms#2318
doug-walker merged 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>

@remia remia left a comment

Copy link
Copy Markdown
Collaborator

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.

@cozdas cozdas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good and clean.

@doug-walker doug-walker merged commit 7063751 into AcademySoftwareFoundation:main Jun 9, 2026
23 checks passed
@doug-walker doug-walker deleted the walker/cycle_fix branch June 9, 2026 01:04
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.

3 participants