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.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
ui_whats_new checks Version 0.10.9 first: the guide chapter can be pinned to a version (SF_GUIDE_VERSION) like the window
islandmedf8ec56b65087
diff --git a/src/app/UserGuide.cpp b/src/app/UserGuide.cppindex 9272a529..56af2177 100644--- a/src/app/UserGuide.cpp+++ b/src/app/UserGuide.cpp@@ -1025,7 +1025,9 @@ float UserGuide::layoutBlocks(App& app, int first, int end, ImVec2 origin, floatvoid UserGuide::prepareWhatsNew() {const int i = book_.find("whats-new.md");if (i < 0) return;- whatsNew_ = whatsnew::build(book_.chapters()[size_t(i)].doc, SCULPTFORGE_VERSION);+ // SF_GUIDE_VERSION shows the chapter as of another version (ui_whats_new pins the newest section it checks).+ const char* as = std::getenv("SF_GUIDE_VERSION");+ whatsNew_ = whatsnew::build(book_.chapters()[size_t(i)].doc, as && *as ? as : SCULPTFORGE_VERSION);expanded_.clear();if (!whatsNew_.versions.empty()) expanded_[whatsNew_.versions[0].anchor] = true; // the newest one is open}diff --git a/tests/ui/whats_new.sfui b/tests/ui/whats_new.sfuiindex fbaae6a2..942bdbac 100644--- a/tests/ui/whats_new.sfui+++ b/tests/ui/whats_new.sfui@@ -2,8 +2,9 @@# block); Esc closes it, Try it opens the feature, Full release notes opens the guide chapter, which shows the last# three versions in full and folds the older ones into groups.# The window is pinned to 0.10.7's five cards (SF_WHATS_NEW_VERSION), so this stays valid after each release; the guide-# chapter below is the build's own (its newest version is the first "Version" line checked).+# chapter below is pinned to 0.10.9 (SF_GUIDE_VERSION), so it checks 0.10.9's section before and after the release.env SF_WHATS_NEW_VERSION 0.10.7+env SF_GUIDE_VERSION 0.10.9run ui_look look=classic layout=zbrush # written for the Classic look and the ZBrush-style palette bar and shelvesrun new_sphere subdivisions=3click "Help##palette.help"@@ -61,9 +62,9 @@ wait 0.3expect_value whats_new_open == 0expect_value guide_open == 1expect_guide whats-new.md+expect_text "Version 0.10.9"+expect_text "Your first sculpt in ten minutes, starter meshes, brushes that keep their settings, and tablets that just work."expect_text "Version 0.10.8"-expect_text "Tablets in mouse mode follow the pen again."-expect_no_text "Not released yet"expect_value whats_new_contents == 6expect_value whats_new_expanded == 1shot whats-new-guide