mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 10:32:20 +00:00
Slic3r compiles with the new slice index interface.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user