Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

UI tests: build with SDL 3.2 (SDL_PEN_INPUT_IN_PROXIMITY is SDL 3.4)

islandmedd6360bf78baa
diff --git a/src/app/UiTest.cpp b/src/app/UiTest.cpp
index c1f80325..70ce6731 100644
--- a/src/app/UiTest.cpp
+++ b/src/app/UiTest.cpp
@@ -57,6 +57,10 @@
// pen_pressure P a pressure sample from the hovering pen (e.g. a stale value before a stroke)
// pen_out the pen leaves proximity
#include "app/App.h"
+
+#ifndef SDL_PEN_INPUT_IN_PROXIMITY
+#define SDL_PEN_INPUT_IN_PROXIMITY (1u << 31) // SDL 3.4's flag; older SDL 3 never sets it
+#endif
#include "app/Demo.h"
#include "app/Ui.h"