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 feat/size-popup-ring 7a901827: the brush ring previews the new size on the mesh while the S/O pop-up is open (#138)

islandmede6412c9c7322
diff --cc src/app/App.cpp
index 93cd592f,e8fdd66f..278de675
--- a/src/app/App.cpp
+++ b/src/app/App.cpp
@@@ -2890,9 -2877,15 +2891,16 @@@ void App::drawUi()
// In Gizmo mode (and with the QRemesh Guides brush) the brush ring shows only while Ctrl masks or Shift smooths.
const bool ringOff = gizmoActive() || (guidesMode_ && !(inputMods() & SDL_KMOD_SHIFT)) || sculptableHot() || forgesphereActive() ||
uvToolActive();
- if (((!ImGui::GetIO().WantCaptureMouse && canvasRect().contains(mouse.x, mouse.y)) || drag_ == Drag::Stroke) &&
+ // (The S / O pop-up holds the mouse, but its ring shows where it opened, #138.)
+ ImVec2 sliderOpened;
+ PickerUi::Slider sliderWhich;
+ float sliderValue;
+ const bool sliderRing = PickerUi::sliderPreview(*this, sliderOpened, sliderWhich, sliderValue) &&
+ canvasRect().contains(sliderOpened.x, sliderOpened.y);
+ if (!sliderRing) sizeRingPreview_ = false;
+ if (((!ImGui::GetIO().WantCaptureMouse && canvasRect().contains(mouse.x, mouse.y)) || drag_ == Drag::Stroke || sliderRing) &&
!hideBrushCursor_ && radial_.menu < 0 && !strokePopup_.open && drag_ != Drag::Select && drag_ != Drag::Guide && // (no ring under a pie or the stroke popup)
+ aiLinkStateValue() != 2 && aiLinkStateValue() != 4 && // (nor over a live-mode question: it is drawn above windows)
(!ringOff || drag_ == Drag::Stroke || ctrlDown(inputMods())))
drawBrushCursor();
drawSelectionOverlay();