Remove commented code + disable autolodcompute for RC

This commit is contained in:
samuncle 2019-03-05 20:59:39 +01:00
parent 7ff6f291d2
commit bb42d72bc5
2 changed files with 2 additions and 7 deletions

View File

@ -214,8 +214,6 @@ void LODNode::updateVisibility()
m_nodes[i]->setVisible(i == m_current_level);
}
}
//const u32 now = irr_driver->getDevice()->getTimer()->getTime();
}
void LODNode::OnRegisterSceneNode()
@ -228,10 +226,6 @@ void LODNode::OnRegisterSceneNode()
}
#endif
const u32 now = irr_driver->getDevice()->getTimer()->getTime();
// support an optional, mostly hard-coded fade-in/out effect for objects with a single level
#ifndef SERVER_ONLY
if (!CVS->isGLSL())
{

View File

@ -144,7 +144,8 @@ LODNode* ModelDefinitionLoader::instanciateAsLOD(const XMLNode* node, scene::ISc
}
vector3df scale = vector3df(1.f, 1.f, 1.f);
node->get("scale", &scale);
lod_node->autoComputeLevel(scale.getLength());
// TODO samuncle: can be enabled after RC
//lod_node->autoComputeLevel(scale.getLength());
#ifdef DEBUG
std::string debug_name = groupname+" (LOD track-object)";