Hide the Design tab behind an experimental CAD preference

The tab is now gated on a new enable_cad_feature app-config key, off by
default, exposed in Preferences under General > Features. When off, the
page is never created, so the Design-only camera option is hidden too.
Takes effect on restart, like the other feature toggles.
This commit is contained in:
SoftFever
2026-08-29 01:56:48 +08:00
parent 13d5eac891
commit 0fc62d03b9
4 changed files with 39 additions and 13 deletions
+5
View File
@@ -311,6 +311,11 @@ void AppConfig::set_defaults()
set_bool("zoom_to_mouse", false);
#ifdef SLIC3R_CAD
// Experimental parametric Design tab. Off by default: the tab is not created at all
// until this is turned on, so nothing it builds reaches an unsuspecting user.
if (get("enable_cad_feature").empty())
set_bool("enable_cad_feature", false);
// Design tab: draw a mate connector as a face rather than as the abstract disc + roll
// quadrant. Defaults ON — face orientation is hardwired perception, so the roll and the
// verse read without being learned, which no abstract glyph achieves. Turning it off