From d4ab889e3ffb83975b93881e6683aa747ca05433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Dumas?= Date: Sat, 21 Nov 2026 06:28:16 +0000 Subject: [PATCH] Update glm to 1.0.3 glm 1.0.2 stopped including gtx/quaternion.hpp from gtx/norm.hpp, which view.h relied on for the length2(quat) used by gtx/dual_quaternion. Include it explicitly. --- deps/glm | 2 +- include/polyscope/view.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/deps/glm b/deps/glm index 0af55cce..8d1fd52e 160000 --- a/deps/glm +++ b/deps/glm @@ -1 +1 @@ -Subproject commit 0af55ccecd98d4e5a8d1fad7de25ba429d60e863 +Subproject commit 8d1fd52e5ab5590e2c81768ace50c72bae28f2ed diff --git a/include/polyscope/view.h b/include/polyscope/view.h index adbcda8c..abb931e7 100644 --- a/include/polyscope/view.h +++ b/include/polyscope/view.h @@ -17,7 +17,8 @@ #include "glm/gtc/matrix_transform.hpp" #include "glm/gtc/type_ptr.hpp" #include "glm/gtx/dual_quaternion.hpp" -#include "glm/gtx/norm.hpp" // necessary for dual_quaternion below +#include "glm/gtx/norm.hpp" // necessary for dual_quaternion below +#include "glm/gtx/quaternion.hpp" // necessary for dual_quaternion below (glm >= 1.0.2) #include "glm/mat4x4.hpp" #include "glm/vec3.hpp" #include "glm/vec4.hpp"