mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-18 22:31:13 -06:00
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:
parent
dc840ea451
commit
41f0e4d1ce
6 changed files with 26 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1173,7 +1173,8 @@ PRINT_CONFIG_CLASS_DERIVED_DEFINE(
|
|||
((ConfigOptionBools, activate_chamber_temp_control))
|
||||
((ConfigOptionInts , chamber_temperature))
|
||||
((ConfigOptionBool, is_infill_first))
|
||||
|
||||
|
||||
((ConfigOptionFloat, preferred_orientation))
|
||||
|
||||
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue