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:
cutealien 2023-04-27 12:50:20 +00:00
parent 28856e78b6
commit 8b0534d4b7

View File

@ -195,7 +195,7 @@ void CCubeSceneNode::OnRegisterSceneNode()
//! returns the material based on the zero based index i. //! returns the material based on the zero based index i.
video::SMaterial& CCubeSceneNode::getMaterial(u32 i) video::SMaterial& CCubeSceneNode::getMaterial(u32 i)
{ {
return Mesh->getMeshBuffer(0)->getMaterial(); return Mesh->getMeshBuffer(i)->getMaterial();
} }