Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbubnikv <bubnikv@gmail.com>2019-05-16 16:55:26 +0300
committerbubnikv <bubnikv@gmail.com>2019-05-16 16:55:26 +0300
commitdf19314645541611f1e51381fd48469122897bd6 (patch)
tree380265e1efda967d7cab6bfe1b6332b0bcdd6a61 /src/slic3r/GUI/PresetBundle.cpp
parent0eeda8e32139432a3eb417c5633a570426bfe99c (diff)
Changed the default of output_filename_format to "[input_filename_base].gcode"
for FDM, and "[input_filename_base].sl1" for the SLA technology. This improves the situation of "Filename creation with variables broken" https://github.com/prusa3d/PrusaSlicer/issues/1918 where anything after the last dot in the file name is considered as an extension, therefore the .gcode resp. .sl1 extension is not added. Now the user gets the output_filename_format filled in with the correct extension. Also now if the output_filename_format is empty, the output name is generated anyway.
Diffstat (limited to 'src/slic3r/GUI/PresetBundle.cpp')
-rw-r--r--src/slic3r/GUI/PresetBundle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/slic3r/GUI/PresetBundle.cpp b/src/slic3r/GUI/PresetBundle.cpp
index e92311cfe..f6cc73b6f 100644
--- a/src/slic3r/GUI/PresetBundle.cpp
+++ b/src/slic3r/GUI/PresetBundle.cpp
@@ -78,6 +78,7 @@ PresetBundle::PresetBundle() :
this->sla_materials.default_preset().inherits();
this->sla_prints.default_preset().config.optptr("sla_print_settings_id", true);
+ this->sla_prints.default_preset().config.opt_string("output_filename_format", true) = "[input_filename_base].sl1";
this->sla_prints.default_preset().compatible_printers_condition();
this->sla_prints.default_preset().inherits();