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
Merge remote-tracking branch 'origin/main' into feat/deform-panel
islandmedd9730e0a7860
diff --cc src/app/App.hindex 8829df17,c2d83209..206ca815--- a/src/app/App.h+++ b/src/app/App.h@@@ -30,9 -30,9 +30,10 @@@#include "core/Pack.h"#include "core/Parts.h"#include "core/Document.h"+#include "core/Deform.h"#include "core/DiscordPresence.h"#include "core/Face.h"+ #include "core/Backdrop.h"#include "core/GeneratedRemesh.h"#include "core/MeshTransform.h"#include "app/Wintab.h"diff --cc src/app/Shell.cppindex bf47b724,ad87321d..b57f90ba--- a/src/app/Shell.cpp+++ b/src/app/Shell.cpp@@@ -1448,12 -1564,31 +1566,27 @@@ void App::drawStatusBar(const ShellGeomx += 8.0f * s;}- // The task menus.- int menuCount = 0;- const TaskMenuDef* menus = taskMenus(menuCount);- const int openMenu = dropdown_.empty() ? -1 : taskMenuOf(dropdown_);- ImFont* menuFont = style == Status::Modules ? ImGui::GetFont() : monoSmall;- for (int i = 0; i < menuCount; ++i) {+ // The task menus. Opening one: the section shown last, else the first one; one that sits in a tray is already+ // on screen, so the menu opens on the next one (a menu whose sections are all in trays flashes the tray instead).+ auto openTaskMenu = [&](int i, float atX) {+ const TaskMenuDef& m = menus[i];- auto inTray = [&](const std::string& id) {- return std::count(layout_.leftTray.begin(), layout_.leftTray.end(), id) +- std::count(layout_.rightTray.begin(), layout_.rightTray.end(), id) >- 0;- };++ auto inTray = [&](const std::string& id) { return paletteInShownTray(id); };+ std::string section = menuSection_[m.id];+ if (section.empty() || taskMenuOf(section) != i || inTray(section)) {+ section.clear();+ for (int k = 0; k < 6 && m.sections[k] && section.empty(); ++k)+ if (!inTray(m.sections[k])) section = m.sections[k];+ }+ if (section.empty()) {+ flashPalette_ = m.sections[0];+ flashStart_ = ImGui::GetTime();+ } else {+ dropdown_ = section;+ menuX_ = atX;+ openDropdown_ = true;+ }+ };+ for (int i = 0; i < shownMenus; ++i) {const TaskMenuDef& m = menus[i];const std::string shown = style == Status::Modules ? std::string(tr(m.name)) : upper(tr(m.name));const float w = textW(menuFont, shown) + 16.0f * s;@@@ -1778,9 -1906,9 +1904,7 @@@ void App::drawTaskMenu()if (!p) continue;const std::string title = tr(taskSectionTitle(menu, k));const bool current = dropdown_ == p->id;-- const bool inTray = std::count(layout_.leftTray.begin(), layout_.leftTray.end(), p->id) +-- std::count(layout_.rightTray.begin(), layout_.rightTray.end(), p->id) >-- 0;++ const bool inTray = paletteInShownTray(p->id);const float rowH = 28.0f * s;const bool clicked = ImGui::InvisibleButton((title + "##section." + p->id).c_str(), ImVec2(listW, rowH));const bool hovered = ImGui::IsItemHovered();