Skip to content

Commit

Permalink
BatchedGeometry: correctly override isVisible
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Nov 9, 2024
1 parent 27fd494 commit 8a399e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/BatchedGeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion source/BatchedGeometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ void BatchedGeometry::_updateRenderQueue(RenderQueue *queue)

//-----------------------------------------------------------------------------
///
bool BatchedGeometry::isVisible()
bool BatchedGeometry::isVisible() const
{
return mVisible && m_bWithinFarDistance;
}
Expand Down

0 comments on commit 8a399e5

Please sign in to comment.