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.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
File > Export STL... as its own menu item (it was inside the ZBrush (GoZ) submenu)
islandmed38a9d405edf2
diff --git a/src/app/Config.cpp b/src/app/Config.cppindex 4c836a77..4d6512cb 100644--- a/src/app/Config.cpp+++ b/src/app/Config.cpp@@ -241,6 +241,11 @@ void App::initActions() {add("file.export_glb", "Export GLB...", "File > Export", "Ctrl+E", [this] { saveFileDialog(FileAction::ExportGlb); },ICON_LC_PACKAGE, nullptr, nullptr, nullptr,"Export the model as glTF binary, with sculpt layers as blend shapes (morph targets).");+ add("file.export_stl", "Export STL...", "File > Export", nullptr, [this] {+ static const SDL_DialogFileFilter filters[] = {{"STL", "stl"}, {"All files", "*"}};+ SDL_ShowSaveFileDialog(onGozFileChosen, &gozDialogs_[int(GozFile::ExportStl)], window_, filters, 2, nullptr);+ },+ nullptr, nullptr, nullptr, nullptr, "Save the visible SubTools as one binary STL, for 3D printing.");add("file.send_unreal", "Send to Unreal", "File > Export", "Ctrl+U", [this] { sendToUnreal(); }, ICON_LC_SEND, nullptr,nullptr, [this] { return !pendingUnreal_.valid(); },"Export a game-ready FBX and import it into the running Unreal Editor (Python remote execution).");diff --git a/src/app/Palettes.cpp b/src/app/Palettes.cppindex 8d7c5b41..36b6903a 100644--- a/src/app/Palettes.cpp+++ b/src/app/Palettes.cpp@@ -234,6 +234,7 @@ void App::drawPalette_File() {ImGui::SeparatorText("Import / Export");menuAction(*this, "file.import");menuAction(*this, "file.export_obj");+ menuAction(*this, "file.export_stl");menuAction(*this, "file.export_glb");menuAction(*this, "file.export_lods");menuAction(*this, "file.export_usd");diff --git a/src/app/PanelGoz.cpp b/src/app/PanelGoz.cppindex d39afc20..66a6635f 100644--- a/src/app/PanelGoz.cpp+++ b/src/app/PanelGoz.cpp@@ -13,7 +13,6 @@ namespace sf {namespace {const SDL_DialogFileFilter kGozFilters[] = {{"ZBrush GoZ", "GoZ;goz"}, {"All files", "*"}};-const SDL_DialogFileFilter kStlFilters[] = {{"STL", "stl"}, {"All files", "*"}};long long fileTime(const std::string& path) {if (path.empty()) return 0;@@ -69,8 +68,6 @@ void App::drawGozMenu() {SDL_ShowOpenFileDialog(onGozFileChosen, &gozDialogs_[int(GozFile::Import)], window_, kGozFilters, 2, nullptr, false);if (ImGui::MenuItem("Export GoZ..."))SDL_ShowSaveFileDialog(onGozFileChosen, &gozDialogs_[int(GozFile::Export)], window_, kGozFilters, 2, nullptr);- if (ImGui::MenuItem("Export STL..."))- SDL_ShowSaveFileDialog(onGozFileChosen, &gozDialogs_[int(GozFile::ExportStl)], window_, kStlFilters, 2, nullptr);ImGui::EndMenu();}diff --git a/tests/ui/blender_bridge.sfui b/tests/ui/blender_bridge.sfuiindex e769f969..d7dedb6f 100644--- a/tests/ui/blender_bridge.sfui+++ b/tests/ui/blender_bridge.sfui@@ -16,6 +16,7 @@ shot received# The menu: File > Blender, with Ctrl-hover help on its items.click "File##palette.file"+expect "Export STL...##file.export_stl"hover "Blender"wait 0.2expect "Send to Blender##file.send_blender"