diff --git a/src/graphics/stkanimatedmesh.cpp b/src/graphics/stkanimatedmesh.cpp index 54bd9d7c4..1143871cd 100644 --- a/src/graphics/stkanimatedmesh.cpp +++ b/src/graphics/stkanimatedmesh.cpp @@ -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) diff --git a/src/graphics/stkmeshscenenode.cpp b/src/graphics/stkmeshscenenode.cpp index 896add95e..81023d01d 100644 --- a/src/graphics/stkmeshscenenode.cpp +++ b/src/graphics/stkmeshscenenode.cpp @@ -318,7 +318,6 @@ void STKMeshSceneNode::render() ++PassCount; - driver->setTransform(video::ETS_WORLD, AbsoluteTransformation); Box = Mesh->getBoundingBox(); setFirstTimeMaterial();