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.

main.cpp: one g_isolatedDir (inbox-0107 and bigbrush both added it)

islandmed26ea74cdfae9
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 2f593d98..1376d8ac 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -81,9 +81,6 @@ void usage() {
" --crash-test KIND Crash on purpose (segv, abort or throw) to test the crash note in the log");
}
-// The folder isolateSettings made (removed when the run succeeds, kept with its log when it fails).
-std::filesystem::path g_isolatedDir;
-
// UI tests must never read or change the user's real settings, recent files or
// autosaves: point the per-user data directories at a fresh temporary folder.
std::filesystem::path g_isolatedDir; // isolateSettings' folder, removed when the run ends well
@@ -93,7 +90,6 @@ void isolateSettings() {
std::error_code ec;
const auto dir = std::filesystem::temp_directory_path(ec) /
("sculptforge-ui-test-" + std::to_string(std::chrono::steady_clock::now().time_since_epoch().count()));
- g_isolatedDir = dir;
std::filesystem::create_directories(dir, ec);
g_isolatedDir = dir;
const std::string d = dir.string();