From 991eaae6e5a6b747fee7e340dade0a6127a7fdca Mon Sep 17 00:00:00 2001 From: John Haddon Date: Fri, 28 Jun 2024 17:04:23 +0100 Subject: [PATCH] SceneInspector : Fix icon names These were broken during the switch to `enum.Enum` in #5559. With a little bit of luck, this will be the last flick of the extremely long tail of bugs coming from that change. --- Changes.md | 1 + python/GafferSceneUI/SceneInspector.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes.md b/Changes.md index ebd905bf86..ba339dcbf7 100644 --- a/Changes.md +++ b/Changes.md @@ -13,6 +13,7 @@ Fixes - HierarchyView, LightEditor, PrimitiveInspector, SceneInspector : Fixed bug which allowed scenes from private plugs to be displayed. - PrimitiveInspector : Fixed bug which claimed "Location does not exist" for objects without any primitive variables. - OpenColorIO : Fixed the display transform used to show colours in popups. +- SceneInspector : Fixed "Show History" menu items. API --- diff --git a/python/GafferSceneUI/SceneInspector.py b/python/GafferSceneUI/SceneInspector.py index 2f7f5ae229..bd32c59696 100644 --- a/python/GafferSceneUI/SceneInspector.py +++ b/python/GafferSceneUI/SceneInspector.py @@ -1280,7 +1280,7 @@ def __init__( self, type, **kw ) : else : GafferUI.Spacer( imath.V2i( 1 ) ) - GafferUI.Image( "rail" + str( type ) + ".png" ) + GafferUI.Image( "rail" + type.name + ".png" ) if type != self.Type.Bottom and type != self.Type.Single : image = GafferUI.Image( "railLine.png" )