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.

Merge fix: one focus-lost case closes the radial menu and lets go of Space

islandmed2cdae5f1bfd3
diff --git a/src/app/App.cpp b/src/app/App.cpp
index 2c2a71e2..f74e101a 100644
--- a/src/app/App.cpp
+++ b/src/app/App.cpp
@@ -1064,13 +1064,11 @@ void App::handleEvent(const SDL_Event& event) {
break;
case SDL_EVENT_WINDOW_FOCUS_LOST:
if (radial_.hold != RadialHold::None) closeRadialMenu(); // its key or button's release won't come here
+ spaceHeld_ = false; // Space let go in another window never reaches us
break;
case SDL_EVENT_WINDOW_CLOSE_REQUESTED:
if (e.window.windowID == SDL_GetWindowID(window_)) requestQuit();
break;
- case SDL_EVENT_WINDOW_FOCUS_LOST:
- spaceHeld_ = false; // Space let go in another window never reaches us
- break;
case SDL_EVENT_PEN_PROXIMITY_IN:
case SDL_EVENT_PEN_PROXIMITY_OUT:
case SDL_EVENT_PEN_DOWN: