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 origin/feat/quick-tour (0.11.0-beta.1)

islandmed7ee49e8f0565
diff --cc src/app/UiTest.cpp
index ae235b3a,cd8406bc..1091634b
--- a/src/app/UiTest.cpp
+++ b/src/app/UiTest.cpp
@@@ -1695,20 -1695,11 +1702,25 @@@ bool Demo::parseStep(int line, const st
app_.handleEvent(e);
});
wait(0.2f);
+ } else if (verb == "logical_width") {
+ // logical_width 1280: the display reports the scale that makes the window this many logical px wide, as a
+ // Windows laptop at 150-200 % does (#105: 2560x1600 at 200 % is 1280x800)
+ if (!need(1)) return false;
+ run([this, v = num(1, 1280)] {
+ int pw = 0, ph = 0; // window units, as the shell lays out (the pixel density is covered by the framebuffer)
+ SDL_GetWindowSize(app_.window_, &pw, &ph);
+ app_.displayScaleOverride_ = float(pw) / std::max(1.0f, v);
+ SDL_Event e{};
+ e.type = SDL_EVENT_WINDOW_DISPLAY_SCALE_CHANGED;
+ e.window.windowID = SDL_GetWindowID(app_.window_);
+ app_.handleEvent(e);
+ });
+ wait(0.2f);
+ } else if (verb == "classic_keys") { // the Classic sculpting keys (style 0), as Preferences > Input sets them
+ run([this] { app_.setInputStyle(0); });
+ } else if (verb == "quick_tour_offers") {
+ // quick_tour_offers: UI tests leave out the quick tour's one offer (it would sit over their clicks)
+ run([this] { app_.quickTourOffersInTests_ = true; });
} else if (verb == "input_style") {
// input_style zbrush|sculptforge|blender|maya: as Preferences > Input sets it (scripts written for one style)
if (!need(1)) return false;