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.

Lit Sphere menu closes on Esc

islandmed00776154ec30
diff --git a/src/app/Pickers.cpp b/src/app/Pickers.cpp
index 46c064c9..ba43e051 100644
--- a/src/app/Pickers.cpp
+++ b/src/app/Pickers.cpp
@@ -1115,6 +1115,7 @@ void litsphereMenu(App& app, int index, const std::function<void()>& beforeRemov
ImGui::EndMenu();
}
ImGui::Separator();
+ if (ImGui::IsKeyPressed(ImGuiKey_Escape, false)) ImGui::CloseCurrentPopup(); // (also while typing: nothing applied)
if (ImGui::MenuItem("Remove##litsphere")) {
if (beforeRemove) beforeRemove();
app.runCommand("remove_litsphere", {{"name", name}});