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();