From 8a399e53ecdfee30f6c084b844155ad60dab650f Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sat, 9 Nov 2024 17:00:50 +0100 Subject: [PATCH] BatchedGeometry: correctly override isVisible --- include/BatchedGeometry.h | 2 +- source/BatchedGeometry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/BatchedGeometry.h b/include/BatchedGeometry.h index 7cac5b1..e893dcb 100644 --- a/include/BatchedGeometry.h +++ b/include/BatchedGeometry.h @@ -160,7 +160,7 @@ namespace Forests Ogre::Real getBoundingRadius(void) const { return m_fRadius; } private: - bool isVisible(); + bool isVisible() const; const Ogre::String& getMovableType(void) const; void visitRenderables(Ogre::Renderable::Visitor* visitor, bool debugRenderables) { /* empty */ } void _notifyCurrentCamera(Ogre::Camera *cam); diff --git a/source/BatchedGeometry.cpp b/source/BatchedGeometry.cpp index 37e48f7..d3b63e2 100644 --- a/source/BatchedGeometry.cpp +++ b/source/BatchedGeometry.cpp @@ -396,7 +396,7 @@ void BatchedGeometry::_updateRenderQueue(RenderQueue *queue) //----------------------------------------------------------------------------- /// -bool BatchedGeometry::isVisible() +bool BatchedGeometry::isVisible() const { return mVisible && m_bWithinFarDistance; }