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
WIP: fix inserted duplicates; #86 enlarged tile on the foreground list
islandmed6812bb74d5f8
diff --git a/src/app/Pickers.cpp b/src/app/Pickers.cppindex c2066205..85909671 100644--- a/src/app/Pickers.cpp+++ b/src/app/Pickers.cpp@@ -312,8 +312,9 @@ void AssetTileHoverGlow() {a.x = std::clamp(a.x, vp->Pos.x + 2.0f, vp->Pos.x + vp->Size.x - s - 2.0f);a.y = std::clamp(a.y, vp->Pos.y + 2.0f, vp->Pos.y + vp->Size.y - s - 2.0f);const ImVec2 b(a.x + s, a.y + s);- // In the window's own draw list, unclipped: over the neighbouring tiles but under tooltips.- ImDrawList* dl = ImGui::GetWindowDrawList();+ // On the foreground list, drawn last: over the neighbouring tiles and every other window (#86: in the window's+ // own list, tiles in later child windows covered it).+ ImDrawList* dl = ImGui::GetForegroundDrawList();dl->PushClipRect(vp->Pos, ImVec2(vp->Pos.x + vp->Size.x, vp->Pos.y + vp->Size.y), false);struct PopClip {ImDrawList* dl;diff --git a/src/app/Ui.cpp b/src/app/Ui.cppindex 2578a544..9cbafdd2 100644--- a/src/app/Ui.cpp+++ b/src/app/Ui.cpp@@ -75,7 +75,7 @@ bool focusedByKeyboard(ImGuiID id) {return id && g.NavCursorVisible && g.NavId == id && g.NavWindow;}-bool itemHoveredForHelp() {bool itemHoveredForHelp() {+bool itemHoveredForHelp() {return ImGui::IsItemHovered(ImGuiHoveredFlags_AllowWhenDisabled | ImGuiHoveredFlags_AllowWhenBlockedByActiveItem);}@@ -455,7 +455,7 @@ void DrawHover(App& app) {it = frame - it->second.frame > 120 ? g_anims.erase(it) : std::next(it);}-void DelayedTooltip(const char* text) {void DelayedTooltip(const char* text) {+void DelayedTooltip(const char* text) {if (!text || !*text || CtrlHeld()) return;if (ImGui::IsItemHovered(ImGuiHoveredFlags_DelayNormal | ImGuiHoveredFlags_NoSharedDelay)) ImGui::SetTooltip("%s", tr(text));}