From 2b5734891afd2c3007ef240edfcf0d6157efeafb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 5 May 2026 12:26:27 +0200 Subject: [PATCH] Revert "Math: remove transitive include for Functions.h." Nope, that was a very stupid change. The *vector* min() / max() is used in intersect(), and this change broke the bindings build (likely along with random other code). This reverts commit 8c228c69c92f81e48980c4f5952b7ae87b5f7d7b. Partially, keeping the extra added includes and also documenting why the Functions.h are included. --- src/Magnum/Math/Range.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Magnum/Math/Range.h b/src/Magnum/Math/Range.h index aa4bcaf08..ef7490057 100644 --- a/src/Magnum/Math/Range.h +++ b/src/Magnum/Math/Range.h @@ -35,8 +35,7 @@ all have it directly in because it just makes sense */ #include -/* Taking also scalar min()/max() from here, which is otherwise advertised in - Functions.h */ +#include "Magnum/Math/Functions.h" /* Vector min() / max() */ #include "Magnum/Math/Vector3.h" #ifdef MAGNUM_BUILD_DEPRECATED