From d069591514e1fa332ad27523e52d13ee6d43abed Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Wed, 21 Apr 2021 16:29:12 +0200 Subject: [PATCH] Write hollow flag to SL1 files if any object is hollowed. --- src/libslic3r/Format/SL1.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libslic3r/Format/SL1.cpp b/src/libslic3r/Format/SL1.cpp index 64cb8b815..554e49b5a 100644 --- a/src/libslic3r/Format/SL1.cpp +++ b/src/libslic3r/Format/SL1.cpp @@ -371,6 +371,13 @@ void fill_iniconf(ConfMap &m, const SLAPrint &print) m["numSlow"] = std::to_string(stats.slow_layers_count); m["numFast"] = std::to_string(stats.fast_layers_count); m["printTime"] = std::to_string(stats.estimated_print_time); + + bool hollow_en = false; + auto it = print.objects().begin(); + while (!hollow_en && it != print.objects().end()) + hollow_en = hollow_en || (*it++)->config().hollowing_enable.getBool(); + + m["hollow"] = hollow_en ? "1" : "0"; m["action"] = "print"; }