Write hollow flag to SL1 files if any object is hollowed.
This commit is contained in:
parent
bb8112f099
commit
d069591514
1 changed files with 7 additions and 0 deletions
|
@ -372,6 +372,13 @@ void fill_iniconf(ConfMap &m, const SLAPrint &print)
|
||||||
m["numFast"] = std::to_string(stats.fast_layers_count);
|
m["numFast"] = std::to_string(stats.fast_layers_count);
|
||||||
m["printTime"] = std::to_string(stats.estimated_print_time);
|
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";
|
m["action"] = "print";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue