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
UI test clicks follow an item only up or down its own panel (a shared label in an open menu no longer leads the mouse away)
islandmedd3227d08cb73
diff --git a/src/app/UiTest.cpp b/src/app/UiTest.cppindex 75147474..7b5271db 100644--- a/src/app/UiTest.cpp+++ b/src/app/UiTest.cpp@@ -1149,7 +1149,8 @@ double Demo::query(const std::string& name, bool& known) const {void Demo::testClick(int line, const std::string& label, int button, bool doubleClick) {// Find the item (give the UI a moment to appear), glide there, press and release.- steps_.push_back([this, line, label](float t) {+ const auto clipAt = std::make_shared<ImVec4>(); // the item's panel when the mouse glided there+ steps_.push_back([this, line, label, clipAt](float t) {ImVec2 to;bool visible = false;if (!findItem(label, to, &visible)) {@@ -1175,18 +1176,22 @@ void Demo::testClick(int line, const std::string& label, int button, bool doubleif (t > 1.0f) fail(line, "\"" + label + "\" is not visible (off screen or scrolled out of view)");return t > 1.0f;}+ findItem(label, to, &visible, clipAt.get());mouseMotion(to.x, to.y);return true;});- steps_.push_back([this, label, button, doubleClick](float t) {+ steps_.push_back([this, label, clipAt, button, doubleClick](float t) {// A frame of hover first, so ImGui registers the item as hovered before the press.if (t == 0.0f) return false;- // A panel still settling after the wheel (or a layout that moved) carries the item away: follow it and- // hover again before pressing, so the press lands on the item, not on the row now under the old spot.+ // A panel still settling (after the wheel, or a sub-palette closing above) carries the item up or down:+ // follow it and hover again before pressing, so the press lands on the item, not on the row now under the+ // old spot. Only within the same panel and column: a label shared by an open menu's entry and another+ // item must not lead the mouse off the menu.ImVec2 to;+ ImVec4 clip;bool visible = false;- if (t < 1.0f && findItem(label, to, &visible) && visible &&- (std::abs(to.x - mouse_.x) > 1.0f || std::abs(to.y - mouse_.y) > 1.0f)) {+ if (t < 1.0f && findItem(label, to, &visible, &clip) && visible && std::abs(to.x - mouse_.x) <= 1.0f &&+ std::abs(to.y - mouse_.y) > 1.0f && clip.x == clipAt->x && clip.z == clipAt->z) {mouseMotion(to.x, to.y);return false;}diff --git a/tests/flaky.md b/tests/flaky.mdindex 12b2eb44..ec0bf1e2 100644--- a/tests/flaky.md+++ b/tests/flaky.md@@ -16,3 +16,6 @@ deletes it; remove its lines once fixed.The CPU check counted every thread over the whole window, and one software-OpenGL frame (llvmpipe's threads) costs~0.4 s of processor time on that runner: 2 frames = 10-16% "idle CPU" over the 10% cap. `--measure-idle` nowchecks the CPU between frames and prints the frames' share apart. Remove these lines after a week of green Windows.+| 2026-11-06 | ui_stroke_background | Omedchy | ed1b0099 |+| 2026-11-06 | ui_stroke_background_preview | Omedchy | ed1b0099 |+| 2026-11-06 | ui_stroke_persistent_upload | Omedchy | ed1b0099 |