diff --git a/source/Irrlicht/CAnimatedMeshSceneNode.cpp b/source/Irrlicht/CAnimatedMeshSceneNode.cpp index fb992b4..593496a 100644 --- a/source/Irrlicht/CAnimatedMeshSceneNode.cpp +++ b/source/Irrlicht/CAnimatedMeshSceneNode.cpp @@ -168,7 +168,7 @@ void CAnimatedMeshSceneNode::OnRegisterSceneNode() { const video::SMaterial& material = ReadOnlyMaterials ? Mesh->getMeshBuffer(i)->getMaterial() : Materials[i]; - if ( driver->needsTransparentRenderPass(Materials[i]) ) + if ( driver->needsTransparentRenderPass(material) ) ++transparentCount; else ++solidCount; @@ -532,7 +532,7 @@ const core::aabbox3d& CAnimatedMeshSceneNode::getBoundingBox() const } -//! returns the material based on the zero based index i. +//! returns the material based on the zero based index i. video::SMaterial& CAnimatedMeshSceneNode::getMaterial(u32 i) { if (i >= Materials.size()) diff --git a/source/Irrlicht/CMeshSceneNode.cpp b/source/Irrlicht/CMeshSceneNode.cpp index 108711a..59d1c1c 100644 --- a/source/Irrlicht/CMeshSceneNode.cpp +++ b/source/Irrlicht/CMeshSceneNode.cpp @@ -71,7 +71,7 @@ void CMeshSceneNode::OnRegisterSceneNode() { const video::SMaterial& material = ReadOnlyMaterials ? Mesh->getMeshBuffer(i)->getMaterial() : Materials[i]; - if ( driver->needsTransparentRenderPass(Materials[i]) ) + if ( driver->needsTransparentRenderPass(material) ) ++transparentCount; else ++solidCount;