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
Update channel radios get ids; UI test: the Preview channel is offered the beta
islandmed4b87f442e662
diff --git a/src/app/PanelProject.cpp b/src/app/PanelProject.cppindex c4219953..9dd77ab1 100644--- a/src/app/PanelProject.cpp+++ b/src/app/PanelProject.cpp@@ -801,9 +801,9 @@ void App::drawUpdatesSection() {"Preferences > Updates");ImGui::TextUnformatted(tr("Update channel"));int channel = updateChannel_ == UpdateChannel::Preview ? 1 : 0;- bool changed = ImGui::RadioButton(tr("Stable"), &channel, 0);+ bool changed = ImGui::RadioButton((std::string(tr("Stable")) + "##prefs.update_stable").c_str(), &channel, 0);ImGui::SameLine();- changed |= ImGui::RadioButton(tr("Preview (betas)"), &channel, 1);+ changed |= ImGui::RadioButton((std::string(tr("Preview (betas)")) + "##prefs.update_preview").c_str(), &channel, 1);ui::HelpText("Update channel", nullptr,"Stable offers only finished releases. Preview also offers the betas: the next version a couple of ""weeks before it ships, for trying it out and reporting what goes wrong (Discord #bug-reports). When "diff --git a/tests/ui/data/update_preview.json b/tests/ui/data/update_preview.jsonnew file mode 100644index 00000000..fb384e4c--- /dev/null+++ b/tests/ui/data/update_preview.json@@ -0,0 +1,13 @@+{+ "version": "0.0.1",+ "download": "https://islandmed.github.io/SculptForge/#download",+ "highlights": ["Stable and old"],+ "channels": {+ "preview": {+ "version": "99.0.0-beta.1",+ "download": "https://github.com/islandmed/SculptForge/releases/tag/v99.0.0-beta.1",+ "notes": "https://islandmed.github.io/SculptForge/guide/whats-new.html",+ "highlights": ["Try the beta"]+ }+ }+}diff --git a/tests/ui/update_check.sfui b/tests/ui/update_check.sfuiindex 1c68f109..736350c1 100644--- a/tests/ui/update_check.sfui+++ b/tests/ui/update_check.sfui@@ -28,3 +28,23 @@ click "Help##palette.help"click "Check for updates##help.check_updates"wait_idle 20expect_status "Couldn't check for updates"++# The Preview channel (Preferences > Updates > Update channel) is offered the feed's channels.preview beta; Stable+# isn't. Back to Stable at the end (the choice is saved in the preferences).+env SF_UPDATE_FEED $SCRIPT_DIR/data/update_preview.json+click "Help##palette.help"+click "Check for updates##help.check_updates"+wait_idle 20+expect_status "is the newest version"+click "Preferences##palette.preferences"+click "Updates##preferences.updates"+expect_text "Update channel"+click "Preview (betas)##prefs.update_preview"+shot update-channel+click "Check for updates##help.check_updates"+wait_idle 20+expect_text "SculptForge 99.0.0-beta.1 is available"+expect_text "Try the beta"+shot update-banner-beta+click "Later"+click "Stable##prefs.update_stable"