mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 11:39:42 +00:00
Remove redundant member function
mActive is public.
This commit is contained in:
parent
b2f7fc70a6
commit
fd249b46c0
1 changed files with 3 additions and 9 deletions
|
@ -61,9 +61,6 @@ namespace MWRender
|
|||
|
||||
void setDefaults(osg::Camera* camera) override;
|
||||
|
||||
bool isActive() { return mActive; }
|
||||
void setIsActive(bool active) { mActive = active; }
|
||||
|
||||
osg::Node* mSceneRoot;
|
||||
osg::Matrix mProjectionMatrix;
|
||||
osg::Matrix mViewMatrix;
|
||||
|
@ -243,7 +240,7 @@ namespace MWRender
|
|||
auto it = mLocalMapRTTs.begin();
|
||||
while (it != mLocalMapRTTs.end())
|
||||
{
|
||||
if (!(*it)->isActive())
|
||||
if (!(*it)->mActive)
|
||||
{
|
||||
mRoot->removeChild(*it);
|
||||
it = mLocalMapRTTs.erase(it);
|
||||
|
@ -758,13 +755,10 @@ namespace MWRender
|
|||
|
||||
void CameraLocalUpdateCallback::operator()(LocalMapRenderToTexture* node, osg::NodeVisitor* nv)
|
||||
{
|
||||
if (!node->isActive())
|
||||
if (!node->mActive)
|
||||
node->setNodeMask(0);
|
||||
|
||||
if (node->isActive())
|
||||
{
|
||||
node->setIsActive(false);
|
||||
}
|
||||
node->mActive = false;
|
||||
|
||||
// Rtt-nodes do not forward update traversal to their cameras so we can traverse safely.
|
||||
// Traverse in case there are nested callbacks.
|
||||
|
|
Loading…
Reference in a new issue