Skip to content

Commit

Permalink
Merge pull request #1462 from johnhaddon/shaderSwitchUIFix
Browse files Browse the repository at this point in the history
ShaderSwitch NodeGraph UI Fix
  • Loading branch information
andrewkaufman committed Aug 27, 2015
2 parents e05b220 + 16a8d6a commit b86f331
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
6 changes: 0 additions & 6 deletions python/GafferSceneUI/GroupUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@

plugs = {

"in*" : [

"plugValueWidget:type", "",

],

"name" : [

"description",
Expand Down
1 change: 1 addition & 0 deletions python/GafferSceneUI/SceneProcessorUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"in" : [

"description", lambda plug : "The input scene" + ( "s" if isinstance( plug, Gaffer.ArrayPlug ) else "" ),
"plugValueWidget:type", "",
"nodule:type", lambda plug : "GafferUI::CompoundNodule" if isinstance( plug, Gaffer.ArrayPlug ) else "GafferUI::StandardNodule",
"compoundNodule:spacing", 2.0,

Expand Down
6 changes: 0 additions & 6 deletions python/GafferSceneUI/SceneSwitchUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@

plugs = {

"in*" : [

"plugValueWidget:type", "",

],

"index" : [

"description",
Expand Down
17 changes: 8 additions & 9 deletions python/GafferSceneUI/ShaderSwitchUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,20 @@

plugs = {

"in*" : [

"nodeGadget:nodulePosition", "left",
"plugValueWidget:type", "",

],

"in" : [

"description",
"""
The first input shader - the one passed through when
the index is 0.
The input shaders - the index plug decides
which of these is passed through to the output.
""",

"plugValueWidget:type", "",
"nodule:type", "GafferUI::CompoundNodule",
"nodeGadget:nodulePosition", "left",
"compoundNodule:orientation", "y",
"compoundNodule:spacing", 0.2,

],

"out" : [
Expand Down

0 comments on commit b86f331

Please sign in to comment.