Skip to content

Commit

Permalink
Merge pull request #5993 from johnhaddon/shaderRevertToDefaultsFix
Browse files Browse the repository at this point in the history
ShaderUI : Mark `type` plug as read-only
  • Loading branch information
ericmehl authored Aug 6, 2024
2 parents a293f3c + a48851f commit 6f94c7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Fixes
- Arnold : Fixed bug preventing UI metadata for Imagers from being loaded for Arnold 7.3.
- WidgetAlgo : Fixed issue preventing `grab()` from capturing popup menus on Windows.
- ShowURL : Fixed opening of "file://" URLs on Windows (#5861).
- Shader : Fixed "Revert to Defaults" menu item in NodeEditor (#1862).

API
---
Expand Down
5 changes: 3 additions & 2 deletions python/GafferSceneUI/ShaderUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __parameterUserDefault( plug ) :
"description",
"""
The name of the shader being represented. This should
be considered read-only. Use the Shader.loadShader()
be considered read-only. Use the `Shader.loadShader()`
method to load a shader.
""",

Expand All @@ -107,10 +107,11 @@ def __parameterUserDefault( plug ) :
"description",
"""
The type of the shader being represented. This should
be considered read-only. Use the Shader.loadShader()
be considered read-only. Use the `Shader.loadShader()`
method to load a shader.
""",

"readOnly", True,
"layout:section", "",
"nodule:type", "",
"plugValueWidget:type", "",
Expand Down

0 comments on commit 6f94c7b

Please sign in to comment.