mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-15 00:55:56 +08:00
Write hollow flag to SL1 files if any object is hollowed.
This commit is contained in:
parent
bb8112f099
commit
d069591514
@ -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…
x
Reference in New Issue
Block a user