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/line-gradient ad3e1378: Color > Line Gradient, a screen-space colour ramp with adjustable ends (#99, @Devon0209)

islandmed558d7fbe84f3
diff --cc src/app/App.cpp
index 6bddfecc,94e45a0e..10c933d0
--- a/src/app/App.cpp
+++ b/src/app/App.cpp
@@@ -2940,9 -2934,9 +2945,10 @@@ void App::drawUi()
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)
+ (!gradient_.armed || ctrlDown(inputMods()) || (inputMods() & SDL_KMOD_SHIFT)) && // (nor while a Line Gradient takes the drags)
aiLinkStateValue() != 2 && aiLinkStateValue() != 4 && // (nor over a live-mode question: it is drawn above windows)
- (!ringOff || drag_ == Drag::Stroke || ctrlDown(inputMods())))
+ (!ringOff || drag_ == Drag::Stroke || ctrlDown(inputMods())) &&
+ (drag_ == Drag::Stroke || !overViewNavigator(mouse.x, mouse.y))) // (nor over the corner axes: a click there navigates)
drawBrushCursor();
drawSelectionOverlay();
drawBrushLibraryPopups();