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.

Continuous also in the left shelf's stroke picker, under the stroke tiles (#43)

islandmeddc8504bc8871
diff --git a/src/app/Pickers.cpp b/src/app/Pickers.cpp
index 89203b11..0bf16121 100644
--- a/src/app/Pickers.cpp
+++ b/src/app/Pickers.cpp
@@ -1061,6 +1061,9 @@ void drawPickers(App& app) {
pickerTitle(ICON_LC_SPLINE, "Stroke", nullptr);
ImGui::Spacing();
drawStrokeGrid(app, GridMode::Popup);
+ // Continuous (#31) here too, beside the strokes, as in the Stroke palette (#43)
+ ImGui::Spacing();
+ ui::ActionButton(app, "stroke.continuous", ImVec2(-1.0f, 0.0f));
}
ImGui::End();
break;
diff --git a/src/app/UiTest.cpp b/src/app/UiTest.cpp
index 7776a00d..a01845ea 100644
--- a/src/app/UiTest.cpp
+++ b/src/app/UiTest.cpp
@@ -73,6 +73,7 @@
// moved_masked (masked vertices that moved),
// moved_out (summed movement along the snapshot's normals: > 0 out, < 0 in),
// pen_pressure (raw), brush_pressure (after the curve; 1 for the mouse),
+// stroke_continuous (Stroke > Continuous, 1 on),
// stroking (1 while a stroke is open), cursor_x / cursor_y (the brush cursor, pixels),
// surface_cursor (1 when the brush ring last drawn lay on the surface, #25),
// cursor_follows_surface (Preferences > Input, 1 on),
@@ -412,6 +413,7 @@ double Demo::query(const std::string& name, bool& known) const {
}
if (name == "lazy_mouse") return app_.strokeType_ == StrokeType::LazyMouse ? 1.0 : 0.0;
if (name == "stroke_type") return double(int(app_.strokeType_)); // 0 Dots, 1 DragRect, 2 DragDot, 3 Spray, 4 LazyMouse
+ if (name == "stroke_continuous") return app_.strokeContinuous_ ? 1.0 : 0.0; // Continuous (#31)
if (name == "vdms") return double(app_.doc_.vdms.size());
if (double kv = 0.0; app_.kelvinUiValue(name, kv)) return kv; // capture_*, kelvin_* (PanelKelvinlet.cpp)
// Facial shapes (PanelFace.cpp): landmarks placed, placing them, a take playing, and face_<shape>: that layer's weight.