mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-05 18:00:41 +01:00
Fix CCubeSceneNode using correct material per side for multi-material cubes
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6473 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
28856e78b6
commit
8b0534d4b7
|
@ -195,7 +195,7 @@ void CCubeSceneNode::OnRegisterSceneNode()
|
|||
//! returns the material based on the zero based index i.
|
||||
video::SMaterial& CCubeSceneNode::getMaterial(u32 i)
|
||||
{
|
||||
return Mesh->getMeshBuffer(0)->getMaterial();
|
||||
return Mesh->getMeshBuffer(i)->getMaterial();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user