Skip to content

Commit

Permalink
Fix HlmsDatablock::clone not cloning custom piece files
Browse files Browse the repository at this point in the history
setCustomPieceFile & setCustomPieceCodeFromMemory were not being carried
over to the cloned datablock
  • Loading branch information
darksylinc committed Dec 29, 2024
1 parent 57ac34f commit 9ad03e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions OgreMain/src/OgreHlmsDatablock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9ad03e7

Please sign in to comment.