Skip to content

Commit

Permalink
renderPassOptions : Allow custom renderPass:type values
Browse files Browse the repository at this point in the history
  • Loading branch information
murraystevenson committed Dec 11, 2024
1 parent e1917fc commit cf4251e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Improvements
------------

- MergeScenes : Removed unnecessary temporary contexts.
- RenderPassEditor : Added support for entering custom values in the `Type` column. Custom types can be later configured with a downstream NameSwitch selecting based on the value of the `renderPass:type` option.

Fixes
-----
Expand Down
1 change: 1 addition & 0 deletions startup/GafferSceneUI/renderPassOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import GafferSceneUI

Gaffer.Metadata.registerValue( "option:renderPass:type", "plugValueWidget:type", "GafferUI.PresetsPlugValueWidget" )
Gaffer.Metadata.registerValue( "option:renderPass:type", "presetsPlugValueWidget:allowCustom", True )
Gaffer.Metadata.registerValue( "option:renderPass:type", "preset:Standard", "" )
## \todo As part of the future great metadata reckoning, it would make more sense for renderPassTypePresetNames to be defined as
# part of this global metadata rather than by GafferSceneUI.RenderPassTypeAdaptorUI and then called here. This would also allow
Expand Down

0 comments on commit cf4251e

Please sign in to comment.