From 3af6aa08ad12ac35cd620df88a14855c81fec200 Mon Sep 17 00:00:00 2001 From: John Haddon Date: Thu, 6 Jul 2023 12:04:58 +0100 Subject: [PATCH] ContextVariablesTweaksUI : Start plug names at `tweak0` The `name` being passed to `__addTweak()` is always empty, so we never hit the original naming code, and ended up with the first plug being called `tweak` and the second being called `tweak1`. Starting with `tweak0` matches us up with the other tweaks nodes. --- python/GafferUI/ContextVariableTweaksUI.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/GafferUI/ContextVariableTweaksUI.py b/python/GafferUI/ContextVariableTweaksUI.py index 0beec0e04c6..1f29585d0be 100644 --- a/python/GafferUI/ContextVariableTweaksUI.py +++ b/python/GafferUI/ContextVariableTweaksUI.py @@ -176,8 +176,7 @@ def __addTweak( self, name, plugTypeOrValue ) : else : plug = Gaffer.TweakPlug( name, plugTypeOrValue() ) - if name : - plug.setName( name.replace( ':', '_' ) ) + plug.setName( "tweak0" ) with Gaffer.UndoScope( self.getPlug().ancestor( Gaffer.ScriptNode ) ) : self.getPlug().addChild( plug )