diff --git a/irr/src/CGLTFMeshFileLoader.cpp b/irr/src/CGLTFMeshFileLoader.cpp index 03c871e32..31f56038f 100644 --- a/irr/src/CGLTFMeshFileLoader.cpp +++ b/irr/src/CGLTFMeshFileLoader.cpp @@ -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) {