Skip to content

fix: SG-43607: Bugfix/aces2 support#1288

Merged
bernie-laberge merged 2 commits into
AcademySoftwareFoundation:mainfrom
dreamworksanimation:bugfix/aces2_support
Jul 6, 2026
Merged

fix: SG-43607: Bugfix/aces2 support#1288
bernie-laberge merged 2 commits into
AcademySoftwareFoundation:mainfrom
dreamworksanimation:bugfix/aces2_support

Conversation

@tjjackson

@tjjackson tjjackson commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Linked issues

#1275 #1330

Summarize your change.

Added a check to functionsMissingLutAsParameter() to avoid treating "else if" as a function definition.

Describe the reason for the change.

The logic added in my previous PR uses a regex to search for the start of functions. The regex roughly follows the format of "word word (...) {".

"else if (...) {" matches as a false positive, so if there is an "else if" block that references a LUT, the code will treat all insteads of "if (...)" as a function call that needs the LUT added as a parameter, and breaks the code.

To the best of my knowledge, "else if" may be the only combination of GLSL keywords that could match the regex as a false positive, so I just added logic to check if the first word matched is "else".

Describe what you have tested and on which operating system.

Tested it on Rocky Linux 9.7

Signed-off-by: TJ Jackson <tj.jackson@dreamworks.com>
Comment thread src/lib/ip/OCIONodes/OCIOIPNode.cpp
@bernie-laberge bernie-laberge changed the title fix: Bugfix/aces2 support fix: SG-43607: Bugfix/aces2 support Jun 8, 2026
@bernie-laberge bernie-laberge added PR: Acknowledged New PR has been acknowledge by the TSC community Contribution from the Open RV Community PR: Planned_P1 PR will be review and set soon. Expect 1 to 4 weeks delay. and removed PR: Acknowledged New PR has been acknowledge by the TSC labels Jun 8, 2026
@bernie-laberge bernie-laberge added PR: In Progress PR is being reviewed by code reviewer. and removed PR: Planned_P1 PR will be review and set soon. Expect 1 to 4 weeks delay. labels Jul 3, 2026
@bernie-laberge

Copy link
Copy Markdown
Contributor

Note that I was able to reproduce this issue with a standard config so I created an issue with the repro steps in it for QA:
#1330

Signed-off-by: TJ Jackson <tj.jackson@dreamworks.com>

@bernie-laberge bernie-laberge left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you @tjjackson !

@bernie-laberge bernie-laberge merged commit f702cd9 into AcademySoftwareFoundation:main Jul 6, 2026
17 checks passed
@bernie-laberge bernie-laberge removed the PR: In Progress PR is being reviewed by code reviewer. label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Contribution from the Open RV Community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants