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.

Deform panel look at 1024 logical px on a 200 % display (2048x1536): the Tool drop-down stays inside the window (offscreen_items == 0)

islandmedaa03d9c70dc2
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 66077f06..a54124dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -974,6 +974,7 @@ if(SCULPTFORGE_BUILD_TESTS)
# The Deform panel for the look review (tests/ui/sizes/: scripts only run at their own sizes).
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)
# 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/tests/ui/sizes/deform_panel_1024.sfui b/tests/ui/sizes/deform_panel_1024.sfui
index 39d96a62..9318d4e9 100644
--- a/tests/ui/sizes/deform_panel_1024.sfui
+++ b/tests/ui/sizes/deform_panel_1024.sfui
@@ -1,5 +1,7 @@
# tests/ui/sizes/deform_panel.sfui on a 1024x768 window (CMake: ui_deform_panel_1024): narrower than 1280 px the
-# right tray is not drawn and Tool opens as a drop-down from the bar (it only flashed the hidden tray before).
+# right tray is not drawn and Tool opens as a drop-down from the bar (it only flashed the hidden tray before). Also at
+# 2048x1536 = 1024 logical px at 200 % (ui_deform_panel_1024_200): the drop-down stays inside the window.
+logical_width 1024
run ui_look look=classic layout=classic
run new_sphere subdivisions=5
run deform_scale amount=100 axes=y
@@ -19,3 +21,4 @@ click "Stack/Z"
expect_status "Deform stack (3 steps)"
wait_idle 30
shot deform-panel
+expect_value offscreen_items == 0