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.

Splat training: quitting stops a tool download; cctype include

islandmed36d83d34cd5b
diff --git a/src/app/PanelSplatTrain.cpp b/src/app/PanelSplatTrain.cpp
index 4e8e9f4d..50e1edf6 100644
--- a/src/app/PanelSplatTrain.cpp
+++ b/src/app/PanelSplatTrain.cpp
@@ -85,6 +85,8 @@ struct SplatTrainUi {
std::shared_ptr<std::string> downloadError = std::make_shared<std::string>();
const ai::ToolDownload* downloading = nullptr;
+ ~SplatTrainUi() { downloadCancel->store(true); } // quitting stops a download (the job stops itself)
+
void findTools() {
brush = ai::findBrush(settings);
colmap = ai::findColmap(settings);
diff --git a/src/core/SplatCapture.cpp b/src/core/SplatCapture.cpp
index 9866ba99..268dffae 100644
--- a/src/core/SplatCapture.cpp
+++ b/src/core/SplatCapture.cpp
@@ -8,6 +8,7 @@
#include <glm/gtc/matrix_transform.hpp>
#include <algorithm>
+#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>