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

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYuSanka <yusanka@gmail.com>2019-02-22 14:22:51 +0300
committerYuSanka <yusanka@gmail.com>2019-02-22 15:22:13 +0300
commit416411bd6454ff535a1dc5e2226862c3a4e64cae (patch)
tree1a0b9e1faf3a1d9f0898815b0f26562ac821e7f4 /src
parent917f044f81cd96d4121b66ccad17db175210e373 (diff)
SLA: Changed default value of the faded_layers to the current one. This information is used for export config.ini
Diffstat (limited to 'src')
-rw-r--r--src/libslic3r/PrintExport.hpp6
-rw-r--r--src/libslic3r/SLAPrint.cpp5
2 files changed, 3 insertions, 8 deletions
diff --git a/src/libslic3r/PrintExport.hpp b/src/libslic3r/PrintExport.hpp
index e196cde5f..0df405846 100644
--- a/src/libslic3r/PrintExport.hpp
+++ b/src/libslic3r/PrintExport.hpp
@@ -155,14 +155,8 @@ template<> class FilePrinter<FilePrinterFormat::SLA_PNGZIP>
"jobDir = ") + projectname + "\n" +
"expTime = " + expt_str + "\n"
"expTimeFirst = " + expt_first_str + "\n"
-// "stepNum = " + stepnum_str + "\n"
-// "wifiOn = 1\n"
-// "tiltSlow = 60\n"
-// "tiltFast = 15\n"
"numFade = " + cnt_fade_layers + "\n"
-// "startdelay = 0\n"
"layerHeight = " + layerh_str + "\n"
- "noteInfo = "
"expTime = "+expt_str+" + resinType = generic+layerHeight = "
+layerh_str+" + printer = DWARF3\n"
"usedMaterial = " + used_material + "\n"
diff --git a/src/libslic3r/SLAPrint.cpp b/src/libslic3r/SLAPrint.cpp
index 7f3bc2557..d81498916 100644
--- a/src/libslic3r/SLAPrint.cpp
+++ b/src/libslic3r/SLAPrint.cpp
@@ -975,7 +975,7 @@ void SLAPrint::process()
this->fill_statistics();
// Set statistics values to the printer
m_printer->set_statistics({(m_print_statistics.objects_used_material + m_print_statistics.support_used_material)/1000,
- 10.0,
+ double(m_default_object_config.faded_layers.getInt()),
double(m_print_statistics.slow_layers_count),
double(m_print_statistics.fast_layers_count)
});
@@ -1318,7 +1318,8 @@ bool SLAPrintObject::invalidate_state_by_config_options(const std::vector<t_conf
std::vector<SLAPrintObjectStep> steps;
bool invalidated = false;
for (const t_config_option_key &opt_key : opt_keys) {
- if (opt_key == "layer_height") {
+ if ( opt_key == "layer_height"
+ || opt_key == "faded_layers") {
steps.emplace_back(slaposObjectSlice);
} else if (
opt_key == "supports_enable"