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.

2.2 KB
Raw Blame
# Preferences save themselves (#117): every change reaches ui.json a moment later, with no command to run; the
# layout waits for Save Layout. An older ui.json whose keymap names the old save command's id (config.store) loads as before.
run ui_look look=classic layout=classic        # the classic palette bar: Preferences is a palette
run new_sphere

# A preference and a shortcut, changed and then a restart: both are still there.
expect_value timeline_top == 1
click "Preferences##palette.preferences"
click "Interface##preferences.interface"
click "Bottom##view.timeline_bottom"
key escape
expect_value timeline_top == 0
wait_value ui_config == 1 5
restart
wait 0.2
expect_value timeline_top == 0
expect_shortcut ui.focal_popup O / I
expect_shortcut ui.strength_popup U

# The layout is not saved by itself: a tray closed comes back open after a restart; Save Layout keeps it.
expect_value right_tray_open == 1
click "##rightdivider"
expect_value right_tray_open == 0
restart
wait 0.2
expect_value right_tray_open == 1
click "##rightdivider"
expect_value right_tray_open == 0
key f3
type "##Command palette" "save layout"
key enter
expect_status "Layout saved"
restart
wait 0.2
expect_value right_tray_open == 0
expect_value timeline_top == 0

# Ctrl+Shift+I does nothing any more (the old save command is gone); its id is Save Preferences Now in the palette.
expect_shortcut config.store
expect_no_text "Store Con"
key f3
type "##Command palette" "save preferences now"
key enter
expect_status "Preferences saved"
shot palette

# Preferences > Config: Customize Shelves, Save Layout, Revert / Reset, Export / Import, and the note.
click "Preferences##palette.preferences"
click "Config##preferences.config"
expect_text "Preferences and shortcuts save themselves"
expect "Save Layout##config.save_layout"
shot preferences-config
key escape

# A ui.json from 0.11.0 with the old binding on config.store and its own keys loads: the binding is kept, the
# rest of its shortcuts and preferences too.
restart data/prefs/ui_0_11_0.json
wait 0.2
expect_shortcut view.frame Ctrl+Alt+F
expect_shortcut config.store Ctrl+Shift+I
expect_value timeline_top == 0
expect_value right_tray_open == 1
key ctrl+shift+i
expect_status "Preferences saved"