merge pull request #504 from fhgffy/fix/glm-spin-translation-502

affine: preserve translation in glm_spin
This commit is contained in:
Recep Aslantas authored and GitHub committed 2026-10-25 00:02:24 +03:00
commit 11d34be968
4 files changed
+73 -1

No files matched your search

+1 -1
View File
@@ -297,7 +297,7 @@ CGLM_INLINE
void
glm_spin(mat4 m, float angle, vec3 axis) {
CGLM_ALIGN_MAT mat4 rot;
glm_rotate_atm(rot, m[3], angle, axis);
glm_rotate_make(rot, angle, axis);
glm_mat4_mul(m, rot, m);
}