CSceneViewport: Mark IsHoveringGizmo() as const

This doesn't modify internal member state.
This commit is contained in:
Lioncash 2020-07-10 11:36:35 -04:00
parent 2263af8d2f
commit 4d932246ca
2 changed files with 2 additions and 2 deletions

View File

@ -132,7 +132,7 @@ void CSceneViewport::ResetHover()
mpHoverNode = nullptr; mpHoverNode = nullptr;
} }
bool CSceneViewport::IsHoveringGizmo() bool CSceneViewport::IsHoveringGizmo() const
{ {
return mGizmoHovering; return mGizmoHovering;
} }

View File

@ -65,7 +65,7 @@ public:
void CheckGizmoInput(const CRay& rkRay); void CheckGizmoInput(const CRay& rkRay);
SRayIntersection SceneRayCast(const CRay& rkRay); SRayIntersection SceneRayCast(const CRay& rkRay);
void ResetHover(); void ResetHover();
bool IsHoveringGizmo(); bool IsHoveringGizmo() const;
void keyPressEvent(QKeyEvent* pEvent) override; void keyPressEvent(QKeyEvent* pEvent) override;
void keyReleaseEvent(QKeyEvent* pEvent) override; void keyReleaseEvent(QKeyEvent* pEvent) override;