From 8afc7f5faec27c1589a54983f43ddbef578e2910 Mon Sep 17 00:00:00 2001 From: Eric Mehl Date: Wed, 16 Aug 2023 17:14:47 -0400 Subject: [PATCH] SpotLightHandle : Fix circular reference `m_view` --- src/GafferSceneUI/LightTool.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GafferSceneUI/LightTool.cpp b/src/GafferSceneUI/LightTool.cpp index b9d4a54cb32..e40c60729a7 100644 --- a/src/GafferSceneUI/LightTool.cpp +++ b/src/GafferSceneUI/LightTool.cpp @@ -804,7 +804,7 @@ class SpotLightHandle : public LightToolHandle SpotLightHandle( const std::string &attributePattern, HandleType handleType, - SceneViewPtr view, + const SceneView *view, const float zRotation, const std::string &name = "SpotLightHandle" ) : @@ -1614,7 +1614,7 @@ class SpotLightHandle : public LightToolHandle ParameterInspectorPtr m_coneAngleInspector; ParameterInspectorPtr m_penumbraAngleInspector; - SceneViewPtr m_view; + const SceneView *m_view; const float m_zRotation;