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.

SubTool thumbnails and axis gizmo: include what they use (<cstdint>, <cstddef>), texture id through uintptr_t as Thumbnails.cpp does

islandmedef09bf45e5dd
diff --git a/src/app/AxisGizmo.h b/src/app/AxisGizmo.h
index b7dab5f5..4af079db 100644
--- a/src/app/AxisGizmo.h
+++ b/src/app/AxisGizmo.h
@@ -9,6 +9,7 @@
#include <glm/glm.hpp>
#include <array>
+#include <cstddef>
namespace sf {
diff --git a/src/app/PanelSubTools.cpp b/src/app/PanelSubTools.cpp
index d7c4e778..c94353d8 100644
--- a/src/app/PanelSubTools.cpp
+++ b/src/app/PanelSubTools.cpp
@@ -15,6 +15,7 @@
#include <algorithm>
#include <cmath>
+#include <cstdint>
#include <cstdio>
#include <string>
#include <vector>
@@ -290,7 +291,7 @@ void App::drawSubToolsContents() {
dl->AddRectFilled(thumbAt, t1, ImGui::ColorConvertFloat4ToU32(kThumbWell), 3.0f * scale);
const auto tex = subtoolThumbs_.find(s.id);
if (tex != subtoolThumbs_.end() && tex->second)
- dl->AddImageRounded(ImTextureID(tex->second), thumbAt, t1, ImVec2(0, 0), ImVec2(1, 1),
+ dl->AddImageRounded(ImTextureID(uintptr_t(tex->second)), thumbAt, t1, ImVec2(0, 0), ImVec2(1, 1),
IM_COL32(255, 255, 255, s.visible ? 255 : 110), 3.0f * scale);
else
dl->AddCircle(ImVec2(thumbAt.x + thumb * 0.5f, thumbAt.y + thumb * 0.5f), thumb * 0.28f,