-
Notifications
You must be signed in to change notification settings - Fork 353
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
Fix swizzle edge cases in version upgrade #1957
Fix swizzle edge cases in version upgrade #1957
Conversation
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
@jstone-lucasfilm sorry for the formatting errors. I actually thought that the code was properly formatted, because I'm using an automatic formatting plugin in Visual Studio based on clang-format. But it turns out, that I'm using a newer version (16) than the version which is used in MaterialX (13 I guess?). Unfortunately even with the same .clang-format configuration file, there are slight differences in formatting between different versions... |
In this case, I think it's fine to omit the new unit test for these specific swizzle patterns, following the approach we use for validating earlier version upgrades. If there are production examples of materials leveraging these swizzle patterns, it would be fine to include them in our test suite with other version upgrade examples: https://github.com/AcademySoftwareFoundation/MaterialX/tree/main/resources/Materials/TestSuite/stdlib/upgrade Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
Signed-off-by: Jonathan Stone <jstone@lucasfilm.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this fix, @nadult!
3ec6e87
into
AcademySoftwareFoundation:main
This PR fixes 2 edge cases when upgrading materials from version 1.38 to 1.39 involving swizzle nodes:
Tests are also added to cover these cases.