From 5c215cf44fb19f075ce04c4ff7130abc7db211d0 Mon Sep 17 00:00:00 2001
From: Murray Stevenson <50844517+murraystevenson@users.noreply.github.com>
Date: Wed, 17 Jul 2024 15:54:47 -0700
Subject: [PATCH] HistoryWindow : Add icon for `CreateIfMissing` tweak mode
---
Changes.md | 3 +++
python/GafferSceneUI/_HistoryWindow.py | 1 +
resources/graphics.py | 1 +
resources/graphics.svg | 14 ++++++++++++++
4 files changed, 19 insertions(+)
diff --git a/Changes.md b/Changes.md
index e063673285d..797da2e9ba8 100644
--- a/Changes.md
+++ b/Changes.md
@@ -1,7 +1,10 @@
1.3.16.x (relative to 1.3.16.6)
========
+Fixes
+-----
+- LightEditor, RenderPassEditor : Added missing icon representing use of the `CreateIfMissing` tweak mode in the history window.
1.3.16.6 (relative to 1.3.16.5)
========
diff --git a/python/GafferSceneUI/_HistoryWindow.py b/python/GafferSceneUI/_HistoryWindow.py
index f4a5ddb65b2..5a6bbec8c99 100644
--- a/python/GafferSceneUI/_HistoryWindow.py
+++ b/python/GafferSceneUI/_HistoryWindow.py
@@ -63,6 +63,7 @@ def cellData( self, path, canceller = None ) :
Gaffer.TweakPlug.Mode.Multiply : "multiplySmall.png",
Gaffer.TweakPlug.Mode.Remove : "removeSmall.png",
Gaffer.TweakPlug.Mode.Create : "createSmall.png",
+ Gaffer.TweakPlug.Mode.CreateIfMissing : "createIfMissingSmall.png",
Gaffer.TweakPlug.Mode.Min : "lessThanSmall.png",
Gaffer.TweakPlug.Mode.Max : "greaterThanSmall.png",
Gaffer.TweakPlug.Mode.ListAppend : "listAppendSmall.png",
diff --git a/resources/graphics.py b/resources/graphics.py
index 09f73fa402b..14d5cc7b775 100644
--- a/resources/graphics.py
+++ b/resources/graphics.py
@@ -380,6 +380,7 @@
"multiplySmall",
"replaceSmall",
"createSmall",
+ "createIfMissingSmall",
"lessThanSmall",
"greaterThanSmall",
"listAppendSmall",
diff --git a/resources/graphics.svg b/resources/graphics.svg
index 64f58dbe10a..1c913493038 100644
--- a/resources/graphics.svg
+++ b/resources/graphics.svg
@@ -3146,6 +3146,14 @@
width="14"
style="display:inline;opacity:1;fill:none;fill-opacity:1;stroke:none;stroke-width:0.52291256;stroke-linejoin:bevel;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:1.10173225;stroke-opacity:1;paint-order:markers stroke fill"
inkscape:label="removeSmall" />
+
+