diff --git a/lib/Slic3r/GUI.pm b/lib/Slic3r/GUI.pm index 4f51dfc1ae..0d07b9434f 100644 --- a/lib/Slic3r/GUI.pm +++ b/lib/Slic3r/GUI.pm @@ -96,7 +96,8 @@ our $Settings = { nudge_val => 1, rotation_controls => 'z', reload_hide_dialog => 0, - reload_behavior => 0 + reload_behavior => 0, + reload_preserve_trafo => 1 }, }; diff --git a/lib/Slic3r/GUI/Preferences.pm b/lib/Slic3r/GUI/Preferences.pm index 3dcf43e39b..d9788b23d2 100644 --- a/lib/Slic3r/GUI/Preferences.pm +++ b/lib/Slic3r/GUI/Preferences.pm @@ -97,9 +97,16 @@ sub new { opt_id => 'reload_hide_dialog', type => 'bool', label => 'Hide Dialog on Reload', - tooltip => 'When checked, the dialog on reloading files with added parts & modifiers is suppressed. The reload is performed according to the option given in \'Default Reload Behavior\'', + tooltip => 'When checked, the dialog on reloading files with added parts & modifiers is suppressed. The reload is performed according to the option given in \'Default Reload Behavior\' and \'Keep Transformation on Reload\'', default => $Slic3r::GUI::Settings->{_}{reload_hide_dialog}, )); + $optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new( # reload preserve transformation + opt_id => 'reload_preserve_trafo', + type => 'bool', + label => 'Keep Transformations on Reload', + tooltip => 'When checked, the \'Reload from disk\' function tries to preserve the current orientation of the object on the bed by applying the same transformation to the reloaded object.', + default => $Slic3r::GUI::Settings->{_}{reload_preserve_trafo}, + )); $optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new( # default reload behavior opt_id => 'reload_behavior', type => 'select',