Skip to content

Commit

Permalink
Merge pull request #6225 from johnhaddon/linkedLightsFallback
Browse files Browse the repository at this point in the history
Attribute metadata : Fix default value for `linkedLights`
  • Loading branch information
murraystevenson authored Jan 21, 2025
2 parents 8524c13 + d3f2e0a commit a16474e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Fixes
-----

- AttributeEditor : Fixed display of fallback value for `linkedLights` attribute.
- AttributeEditor, LightEditor, RenderPassEditor :
- Fixed bugs which prevented edits being made in "Source" scope when there was a downstream edit in an EditScope (#6172).
- Fixed warning messages when attempting to disable a non-existent edit.
Expand Down
1 change: 1 addition & 0 deletions src/GafferScene/StandardAttributes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ StandardAttributes::StandardAttributes( const std::string &name )

// light linking

/// \todo The default value is wrong - it should be "defaultLights".
attributes->addChild( new Gaffer::NameValuePlug( "linkedLights", new IECore::StringData( "" ), false, "linkedLights" ) );

// light filter linking
Expand Down
2 changes: 1 addition & 1 deletion startup/GafferScene/standardAttributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
)

Gaffer.Metadata.registerValue( "attribute:linkedLights", "label", "Linked Lights" )
Gaffer.Metadata.registerValue( "attribute:linkedLights", "defaultValue", IECore.StringData( "" ) )
Gaffer.Metadata.registerValue( "attribute:linkedLights", "defaultValue", "defaultLights" )
Gaffer.Metadata.registerValue(
"attribute:linkedLights",
"description",
Expand Down

0 comments on commit a16474e

Please sign in to comment.