mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-24 17:50:31 +01:00
Fix: CMeshSceneNode and CAnimatedMeshSceneNode still used wrong material in OnRegisterSceneNode.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6035 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
0b71328102
commit
34d09f7c63
@ -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<f32>& 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())
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user