From 4cd579fd33abc4a4f1f05ab799abf7b882a6e650 Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Fri, 11 Aug 2023 13:03:27 -0400 Subject: [PATCH] SpotLightHandle : Highlight only in highlight state I'm not sure why we were highlighting also if the drag was active, all of my testing indicates the highlight state is sufficient to keep the highlight active while dragging. This hasn't caused problems for the `SpotLightHandle`, but it caused multiple `QuadLightHandle` to be highlighted incorrectly, so I'm matching the behavior here for consistency. --- src/GafferSceneUI/LightTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GafferSceneUI/LightTool.cpp b/src/GafferSceneUI/LightTool.cpp index 0162c9d64bf..388a8269655 100644 --- a/src/GafferSceneUI/LightTool.cpp +++ b/src/GafferSceneUI/LightTool.cpp @@ -1194,7 +1194,7 @@ class SpotLightHandle : public LightToolHandle IECoreGL::GroupPtr group = new IECoreGL::Group; - const bool highlighted = state == Style::State::HighlightedState || m_drag; + const bool highlighted = state == Style::State::HighlightedState; // Line along cone. Use a cylinder because GL_LINE with width > 1 // are not reliably selected.