CSceneViewport: Mark HoverPoint() as const

This doesn't modify internal member state.
This commit is contained in:
Lioncash 2020-07-05 10:40:28 -04:00
parent 602c0cf1e3
commit fc4c0a6c58
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ CSceneNode* CSceneViewport::HoverNode()
return mpHoverNode; return mpHoverNode;
} }
CVector3f CSceneViewport::HoverPoint() CVector3f CSceneViewport::HoverPoint() const
{ {
return mHoverPoint; return mHoverPoint;
} }

View File

@ -61,7 +61,7 @@ public:
FShowFlags ShowFlags() const; FShowFlags ShowFlags() const;
CRenderer* Renderer(); CRenderer* Renderer();
CSceneNode* HoverNode(); CSceneNode* HoverNode();
CVector3f HoverPoint(); CVector3f HoverPoint() const;
void CheckGizmoInput(const CRay& rkRay); void CheckGizmoInput(const CRay& rkRay);
SRayIntersection SceneRayCast(const CRay& rkRay); SRayIntersection SceneRayCast(const CRay& rkRay);
void ResetHover(); void ResetHover();