Skip to content

Commit

Permalink
Merge pull request #5823 from murraystevenson/renderPassEditorDeregis…
Browse files Browse the repository at this point in the history
…terColumn

RenderPassEditor : Add method for deregistering a column
  • Loading branch information
johnhaddon authored Apr 26, 2024
2 parents 88bce30 + 60758db commit 3f01f01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ API

- PlugAlgo : `setValueFromData()` and `canSetValueFromData()` now support conversion of arrays of length 1 to their equivalent scalar types.
- BoxPlug : Added Python bindings for `ValueType`, `PointType` and `ChildType` type aliases.
- RenderPassEditor : Added `deregisterColumn()` method.

1.4.1.0 (relative to 1.4.0.0)
=======
Expand Down
7 changes: 7 additions & 0 deletions python/GafferSceneUI/RenderPassEditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,13 @@ def registerColumn( cls, groupKey, columnKey, inspectorFunction, section = "Main

section[columnKey] = inspectorFunction

@classmethod
def deregisterColumn( cls, groupKey, columnKey, section = "Main" ) :

sections = cls.__columnRegistry.get( groupKey )
if sections is not None and section in sections.keys() and columnKey in sections[section].keys() :
del sections[section][columnKey]

__addRenderPassButtonMenuSignal = None
## This signal is emitted whenever the add render pass button is clicked.
# If the resulting menu definition has been populated with items,
Expand Down

0 comments on commit 3f01f01

Please sign in to comment.