mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 00:37:51 -06:00
Slic3r compiles with the new slice index interface.
This commit is contained in:
parent
19a96336ff
commit
d4dde12d0d
4 changed files with 172 additions and 83 deletions
|
@ -776,10 +776,10 @@ void Preview::load_print_as_sla()
|
|||
double shift_z = obj->get_current_elevation();
|
||||
if (obj->is_step_done(slaposIndexSlices))
|
||||
{
|
||||
const SLAPrintObject::SliceIndex& index = obj->get_slice_index();
|
||||
for (const SLAPrintObject::SliceIndex::value_type& id : index)
|
||||
const std::vector<float>& hlvls = obj->get_height_levels();
|
||||
for (float h : hlvls)
|
||||
{
|
||||
zs.insert(shift_z + id.first);
|
||||
zs.insert(shift_z + double(h));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue