Adds rotate on stl import (#3116)

* Adds rotate on stl import

* Fixed comma placement

* update location of rotate variables

---------

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
Alex Khalilieh 2023-12-14 16:59:35 -08:00 committed by GitHub
parent dc840ea451
commit 41f0e4d1ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 26 additions and 5 deletions

View file

@ -468,6 +468,15 @@ void PrintConfigDef::init_common_params()
def->mode = comSimple;
def->set_default_value(new ConfigOptionFloat(100.0));
def = this->add("preferred_orientation", coFloat);
def->label = L("Preferred orientation");
def->tooltip = L("Automatically orient stls on the Z-axis upon initial import");
def->sidetext = L("°");
def->max = 360;
def->min = -360;
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionFloat(0.0));
// Options used by physical printers
def = this->add("preset_names", coStrings);