Try to fix LOD in legacy pipeline
This commit is contained in:
parent
befa2394a8
commit
690d36271d
@ -17,6 +17,7 @@
|
||||
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
|
||||
#include "graphics/camera.hpp"
|
||||
#include "graphics/central_settings.hpp"
|
||||
#include "graphics/irr_driver.hpp"
|
||||
#include "graphics/lod_node.hpp"
|
||||
#include "graphics/material_manager.hpp"
|
||||
@ -253,6 +254,14 @@ void LODNode::OnRegisterSceneNode()
|
||||
|
||||
m_previous_visibility = (shown ? WAS_SHOWN : WAS_HIDDEN);
|
||||
m_last_tick = now;
|
||||
if (!CVS->isGLSL())
|
||||
{
|
||||
for (core::list<ISceneNode*>::Iterator it = Children.begin();
|
||||
it != Children.end(); it++)
|
||||
{
|
||||
(*it)->updateAbsolutePosition();
|
||||
}
|
||||
}
|
||||
|
||||
scene::ISceneNode::OnRegisterSceneNode();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user