diff --git a/src/Editor/CSceneViewport.cpp b/src/Editor/CSceneViewport.cpp index 50647d72..5a307524 100644 --- a/src/Editor/CSceneViewport.cpp +++ b/src/Editor/CSceneViewport.cpp @@ -69,7 +69,7 @@ CSceneNode* CSceneViewport::HoverNode() return mpHoverNode; } -CVector3f CSceneViewport::HoverPoint() +CVector3f CSceneViewport::HoverPoint() const { return mHoverPoint; } diff --git a/src/Editor/CSceneViewport.h b/src/Editor/CSceneViewport.h index 66063391..8d05f550 100644 --- a/src/Editor/CSceneViewport.h +++ b/src/Editor/CSceneViewport.h @@ -61,7 +61,7 @@ public: FShowFlags ShowFlags() const; CRenderer* Renderer(); CSceneNode* HoverNode(); - CVector3f HoverPoint(); + CVector3f HoverPoint() const; void CheckGizmoInput(const CRay& rkRay); SRayIntersection SceneRayCast(const CRay& rkRay); void ResetHover();