Skip to content

Commit

Permalink
Merge branch '1.3_maintenance' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhaddon committed Jan 11, 2024
2 parents 6f240e6 + acf235a commit b90c4b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
11 changes: 4 additions & 7 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ Build

- PsUtil : Added version 5.9.6.

1.3.x.x (relative to 1.3.9.0)
=======
1.3.10.0 (relative to 1.3.9.0)
========

Features
--------
Expand All @@ -142,7 +142,9 @@ Improvements
- USDLight : Added file browser for `shaping:ies:file` parameter.
- OpenColorIOContext : Added file browser for `config` plug.
- Layouts : Added the ability to load layouts containing editors that aren't currently available. This allows layouts containing new editors introduced in Gaffer 1.4 to be loaded in Gaffer 1.3.
- TranslateTool, RotateTool : Added tooltip to the upper left corner of the Viewer explaining how to use the target modes.
- LightTool : Changed the color of the non-highlighted handles to orange and the highlighted handles to cyan for consistency with other highlight colors.
- Outputs : Variable substitutions are now applied to `gaffer:context:*` image metadata values. This is needed when the value of a context variable contains references to other variables, with the default value for `project:rootDirectory` being one example.

Fixes
-----
Expand All @@ -161,11 +163,6 @@ API
- `fileSystemPath:extensions`
- `fileSystemPath:extensionsLabel`

Improvements
------------

- Translate and Rotate tools : Added viewer tip to the upper left corner of the viewer explaining how to use the target modes.

1.3.9.0 (relative to 1.3.8.0)
=======

Expand Down
2 changes: 2 additions & 0 deletions python/GafferSceneTest/InteractiveRenderTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def testMetadata( self ) :

s = Gaffer.ScriptNode()
s["variables"].addChild( Gaffer.NameValuePlug( "a", "A", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) )
s["variables"].addChild( Gaffer.NameValuePlug( "b", "${a}", flags = Gaffer.Plug.Flags.Default | Gaffer.Plug.Flags.Dynamic ) )

s["s"] = GafferScene.Sphere()

Expand Down Expand Up @@ -148,6 +149,7 @@ def testMetadata( self ) :
self.assertEqual( headers["gaffer:version"], IECore.StringData( Gaffer.About.versionString() ) )
self.assertEqual( headers["gaffer:sourceScene"], IECore.StringData( "r.__adaptedIn" ) )
self.assertEqual( headers["gaffer:context:a"], IECore.StringData( "A" ) )
self.assertEqual( headers["gaffer:context:b"], IECore.StringData( "A" ) )

def testAddAndRemoveOutput( self ):

Expand Down
6 changes: 5 additions & 1 deletion src/GafferScene/RendererAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1603,12 +1603,16 @@ ConstOutputPtr addGafferOutputParameters( const Output *output, const ScenePlug
case IECore::BoolDataTypeId :
case IECore::IntDataTypeId :
case IECore::FloatDataTypeId :
case IECore::StringDataTypeId :
case IECore::V3fDataTypeId :
case IECore::Color3fDataTypeId :
case IECore::Color4fDataTypeId :
param->writable()["header:gaffer:context:" + name.string()] = data;
break;
case IECore::StringDataTypeId :
param->writable()["header:gaffer:context:" + name.string()] = new StringData(
context->substitute( static_cast<const StringData *>( data.get() )->readable() )
);
break;
default :
IECore::msg(
IECore::Msg::Debug,
Expand Down

0 comments on commit b90c4b1

Please sign in to comment.