From 9ad03e70ea961d60bec5d0358a940d189dd9af6a Mon Sep 17 00:00:00 2001 From: "Matias N. Goldberg" Date: Sun, 29 Dec 2024 12:46:06 -0300 Subject: [PATCH] Fix HlmsDatablock::clone not cloning custom piece files setCustomPieceFile & setCustomPieceCodeFromMemory were not being carried over to the cloned datablock --- OgreMain/src/OgreHlmsDatablock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/OgreMain/src/OgreHlmsDatablock.cpp b/OgreMain/src/OgreHlmsDatablock.cpp index 0db77973d0..7092b0554f 100644 --- a/OgreMain/src/OgreHlmsDatablock.cpp +++ b/OgreMain/src/OgreHlmsDatablock.cpp @@ -238,6 +238,9 @@ namespace Ogre datablock->mShadowConstantBias = mShadowConstantBias; + for( size_t i = 0u; i < NumShaderTypes; ++i ) + datablock->mCustomPieceFileIdHash[i] = mCustomPieceFileIdHash[i]; + cloneImpl( datablock ); datablock->calculateHash();