Skip to content

Commit

Permalink
Main: MeshSerializerImpl - fix calcMorphKeyframeSize
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Jul 14, 2024
1 parent 940e663 commit 8f534d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OgreMain/src/OgreMeshSerializerImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2003,6 +2003,7 @@ namespace Ogre {
size_t size = MSTREAM_OVERHEAD_SIZE;
// float time
size += sizeof(float);
size += sizeof(char); // bool includesNormals
// float x,y,z[,nx,ny,nz]
bool includesNormals = kf->getVertexBuffer()->getVertexSize() > (sizeof(float) * 3);
size += sizeof(float) * (includesNormals ? 6 : 3) * vertexCount;
Expand Down

0 comments on commit 8f534d3

Please sign in to comment.