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

@ -878,7 +878,7 @@ static std::vector<std::string> s_Preset_printer_options {
"cooling_tube_retraction",
"cooling_tube_length", "high_current_on_filament_swap", "parking_pos_retraction", "extra_loading_move", "purge_in_prime_tower", "enable_filament_ramming",
"z_offset",
"disable_m73",
"disable_m73", "preferred_orientation"
};
static std::vector<std::string> s_Preset_sla_print_options {

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);

View file

@ -1173,7 +1173,8 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
((ConfigOptionBools, activate_chamber_temp_control))
((ConfigOptionInts , chamber_temperature))
((ConfigOptionBool, is_infill_first))
((ConfigOptionFloat, preferred_orientation))
)