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

ShaderUI : Mark type plug as read-only #5993

Merged

Conversation

johnhaddon
Copy link
Member

As with name, it is already considered read-only because loadShader() should be used to set it and load all the associated parameters at the same time. Marking it as read-only via metadata prevents the "Revert to Defaults" menu item from clobbering it, which previously was breaking the shader completely.

Also updated documentation to make use of Markdown code formatting.

Fixes #1862

As with `name`, it is already considered read-only because `loadShader()` should be used to set it and load all the associated parameters at the same time. Marking it as read-only via metadata prevents the "Revert to Defaults" menu item from clobbering it, which previously was breaking the shader completely.

Also updated documentation to make use of Markdown code formatting.

Fixes GafferHQ#1862
@johnhaddon johnhaddon self-assigned this Aug 6, 2024
@johnhaddon johnhaddon changed the base branch from main to 1.4_maintenance August 6, 2024 14:57
Copy link
Collaborator

@ericmehl ericmehl left a comment

Choose a reason for hiding this comment

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

LGTM

@ericmehl ericmehl merged commit 6f94c7b into GafferHQ:1.4_maintenance Aug 6, 2024
5 of 6 checks passed
@johnhaddon johnhaddon deleted the shaderRevertToDefaultsFix branch August 7, 2024 09:23
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.

Revert to Defaults menu item breaks shaders
2 participants