From 4d932246ca86ea5e31ad677d81596b1aabbe0e45 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 10 Jul 2020 11:36:35 -0400 Subject: [PATCH] CSceneViewport: Mark IsHoveringGizmo() as const This doesn't modify internal member state. --- src/Editor/CSceneViewport.cpp | 2 +- src/Editor/CSceneViewport.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Editor/CSceneViewport.cpp b/src/Editor/CSceneViewport.cpp index 5a307524..137f7c03 100644 --- a/src/Editor/CSceneViewport.cpp +++ b/src/Editor/CSceneViewport.cpp @@ -132,7 +132,7 @@ void CSceneViewport::ResetHover() mpHoverNode = nullptr; } -bool CSceneViewport::IsHoveringGizmo() +bool CSceneViewport::IsHoveringGizmo() const { return mGizmoHovering; } diff --git a/src/Editor/CSceneViewport.h b/src/Editor/CSceneViewport.h index 8d05f550..ec81836c 100644 --- a/src/Editor/CSceneViewport.h +++ b/src/Editor/CSceneViewport.h @@ -65,7 +65,7 @@ public: void CheckGizmoInput(const CRay& rkRay); SRayIntersection SceneRayCast(const CRay& rkRay); void ResetHover(); - bool IsHoveringGizmo(); + bool IsHoveringGizmo() const; void keyPressEvent(QKeyEvent* pEvent) override; void keyReleaseEvent(QKeyEvent* pEvent) override;