Remove some instance of setTransform.

This commit is contained in:
Vincent Lejeune 2014-04-08 14:15:29 +02:00
parent 4f92d9bc6b
commit d67834574b
2 changed files with 0 additions and 9 deletions

View File

@ -116,8 +116,6 @@ void STKAnimatedMesh::render()
return;
}
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
if (firstTime)
{
for (u32 i = 0; i < m->getMeshBufferCount(); ++i)
@ -182,12 +180,6 @@ void STKAnimatedMesh::render()
// and solid only in solid pass
if (transparent != isTransparentPass)
continue;
if (RenderFromIdentity)
driver->setTransform(video::ETS_WORLD, core::IdentityMatrix);
else if (Mesh->getMeshType() == scene::EAMT_SKINNED)
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation * ((scene::SSkinMeshBuffer*)mb)->Transformation);
}
if (irr_driver->getPhase() == SOLID_NORMAL_AND_DEPTH_PASS)

View File

@ -318,7 +318,6 @@ void STKMeshSceneNode::render()
++PassCount;
driver->setTransform(video::ETS_WORLD, AbsoluteTransformation);
Box = Mesh->getBoundingBox();
setFirstTimeMaterial();