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.

Cut symmetry look-review shots at 1440 px, 100 % and 200 % (tests/ui/sizes/cut_symmetry.sfui); shorter Blender Controls label

islandmed384c0e1aeffb
diff --git a/CMakeLists.txt b/CMakeLists.txt
index db50ef02..5f52fca0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1008,6 +1008,9 @@ if(SCULPTFORGE_BUILD_TESTS)
sculptforge_ui_test(deform_panel_1440 sizes/deform_panel --size 1440x900)
sculptforge_ui_test(deform_panel_1024 sizes/deform_panel_1024 --size 1024x768)
sculptforge_ui_test(deform_panel_1024_200 sizes/deform_panel_1024 --size 2048x1536)
+ # Cut with X symmetry and its caps, for the look review at 1440 px, 100 % and 200 % (tests/ui/sizes/cut_symmetry.sfui).
+ sculptforge_ui_test(cut_symmetry_1440 sizes/cut_symmetry --size 1440x900)
+ sculptforge_ui_test(cut_symmetry_1440_200 sizes/cut_symmetry --size 2880x1800)
# A crash leaves a note in the log file (#16). Needs no window.
add_test(NAME crash_log COMMAND ${CMAKE_COMMAND} -DAPP=$<TARGET_FILE:sculptforge>
-DDIR=${CMAKE_CURRENT_BINARY_DIR}/crash-log-test -P ${CMAKE_CURRENT_SOURCE_DIR}/tests/crash_log.cmake)
diff --git a/src/app/Config.cpp b/src/app/Config.cpp
index 480582da..c5a19fa2 100644
--- a/src/app/Config.cpp
+++ b/src/app/Config.cpp
@@ -342,8 +342,8 @@ constexpr Gesture kBlenderGestures[] = {
{"Invert / clear mask", "Ctrl+I / Alt+M"},
{"Select a Part", "Alt+Q over it (Alt+click masks in this style), or triple-click it"},
{"Hide face group", "H over it (Shift+H: show only it, again: everything; Alt+H shows all)"},
- {"Hide outside a rectangle or lasso", "Ctrl+Shift + drag (add Alt: inside; shape in Tool > Visibility); click: "
- "isolate the face group, the background shows all"},
+ {"Hide outside a shape", "Ctrl+Shift + drag a rectangle or lasso (add Alt: inside; shape in Tool > Visibility); "
+ "click: isolate the face group, the background shows all"},
{"Cut", "Pick a Cut shape (Ctrl+Shift + click the brush tile, or Ctrl+Shift+B), then Ctrl+Shift + drag"},
{"Brush radius / strength", "F / Shift+F, then drag or type a number"},
{"Help on any control", "Hold Ctrl and point at it (Ctrl+Alt: scripting parameters)"},
diff --git a/tests/ui/sizes/cut_symmetry.sfui b/tests/ui/sizes/cut_symmetry.sfui
new file mode 100644
index 00000000..9a4e2369
--- /dev/null
+++ b/tests/ui/sizes/cut_symmetry.sfui
@@ -0,0 +1,61 @@
+# Cut with X symmetry (Discord, dm4nd) for the look review at 1440 logical px (CMake: ui_cut_symmetry_1440 at 100 %,
+# ui_cut_symmetry_1440_200 at 200 %): Cut In with a rectangle across the middle (both sides to the same depth), a
+# second cut across its caps from an angled view (the caps close; Wire on, close up), and the Blender keys' Alt+Q in
+# Controls. Every shot comes before the checks, so the script also shows an older build as it was.
+logical_width 1440
+run ui_look look=classic layout=classic
+run new_sphere subdivisions=5
+remember triangles full
+
+# --- (1) Cut In, a rectangle across the middle ---
+click "Tool##palette.tool"
+click "Cut"
+click "In##cut.in"
+hold ctrl+shift
+click "##tile.brush"
+wait 0.1
+click "Cut Rectangle##held.cut.rect"
+hold none
+mouse_move 0.5 0.5
+key f
+wait_idle 10
+shot cut-in-before
+hold ctrl+shift
+drag_path 0.42 0.38 0.78 0.62 keep
+wait 0.1
+shot cut-in-drawing
+release
+hold none
+wait_idle 10
+shot cut-in-after
+camera 0 -35
+wait_idle 10
+shot cut-in-after-from-above
+
+# --- (2) A second cut across the first one's caps, from an angled view: Away, Wire on, close up ---
+click "Away##cut.away"
+camera 30 -20
+wait_idle 10
+hold ctrl+shift
+drag_path 0.3 0.3 0.62 0.55
+hold none
+wait_idle 10
+mouse_move 0.5 0.5
+key shift+f
+zoom 1.8
+wait_idle 10
+shot cap-wire-closeup
+key shift+f
+
+# --- (3) Blender keys: Alt+Q in Controls > Mouse & pen ---
+input_style blender
+key f1
+click "Mouse & pen"
+expect_text Alt+Q over it
+shot controls-blender-alt-q
+key escape
+input_style sculptforge
+
+# --- Checks (after every shot) ---
+expect_value triangles != $full
+expect_value open_edges == 0