Mark transformation matrices as const

This commit is contained in:
Josiah VanderZee 2024-05-21 12:24:09 -05:00 committed by Lars Mueller
parent 5bd1d052ad
commit 8a2cae1065

@ -181,13 +181,13 @@ void CGLTFMeshFileLoader::MeshExtractor::loadMesh(
// Base transformation between left & right handed coordinate systems.
// This just inverts the Z axis.
static core::matrix4 leftToRight = core::matrix4(
static const core::matrix4 leftToRight = core::matrix4(
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, -1, 0,
0, 0, 0, 1
);
static core::matrix4 rightToLeft = leftToRight;
static const core::matrix4 rightToLeft = leftToRight;
static core::matrix4 loadTransform(const tiniergltf::Node::Matrix &m)
{