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.

Document: build the first SubTool without a partial aggregate initializer (silences -Wmissing-field-initializers)

islandmed82c87853cd19
diff --git a/src/core/Document.cpp b/src/core/Document.cpp
index d35cd4e5..11c4f40b 100644
--- a/src/core/Document.cpp
+++ b/src/core/Document.cpp
@@ -22,7 +22,9 @@ void Document::setMesh(Mesh m, std::string name) {
bvhDirty = false;
gozName.clear();
subtools.clear();
- subtools.push_back(SubTool{nextSubtoolId_++, name.empty() ? "Sculpt" : std::move(name)});
+ subtools.emplace_back();
+ subtools.back().id = nextSubtoolId_++;
+ subtools.back().name = name.empty() ? "Sculpt" : std::move(name);
activeSubtool = 0;
markClean();
}