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.

Vdm: include cstdlib for std::free; ASCII escapes in a test name

islandmed08f4b0efe660
diff --git a/src/core/Vdm.cpp b/src/core/Vdm.cpp
index 3032edd2..33fa940b 100644
--- a/src/core/Vdm.cpp
+++ b/src/core/Vdm.cpp
@@ -15,6 +15,7 @@
#include <algorithm>
#include <cctype>
#include <cmath>
+#include <cstdlib>
#include <cstring>
#include <filesystem>
#include <fstream>
diff --git a/tests/test_vdm.cpp b/tests/test_vdm.cpp
index 2c4cc77d..5a4475f3 100644
--- a/tests/test_vdm.cpp
+++ b/tests/test_vdm.cpp
@@ -149,7 +149,7 @@ TEST(vdm_exr_round_trip) {
TEST(vdm_sfvdm_round_trip_and_damaged_files) {
VectorDisplacement v = leaningLump(40);
- v.name = "Lümp \"two\"";
+ v.name = "L\xc3\xbcmp \"two\""; // UTF-8 and quotes
const std::string path = tempPath("sculptforge_vdm_round.sfvdm");
std::string err;
CHECK(writeVdmFile(path, v, err));