From 8b0534d4b7387094c56105f1137f79c496cd28b0 Mon Sep 17 00:00:00 2001 From: cutealien Date: Thu, 27 Apr 2023 12:50:20 +0000 Subject: [PATCH] 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 --- source/Irrlicht/CCubeSceneNode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/Irrlicht/CCubeSceneNode.cpp b/source/Irrlicht/CCubeSceneNode.cpp index 3bafe21d..63a4115d 100644 --- a/source/Irrlicht/CCubeSceneNode.cpp +++ b/source/Irrlicht/CCubeSceneNode.cpp @@ -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(); }