From 8a2cae1065ce9f3e79664d6d6cb61c3ebd3c0f0e Mon Sep 17 00:00:00 2001 From: Josiah VanderZee Date: Tue, 21 May 2024 12:24:09 -0500 Subject: [PATCH] Mark transformation matrices as const --- irr/src/CGLTFMeshFileLoader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {