Fixed lifting of models for SLA above the print if supports

or pad are calculated.
This commit is contained in:
bubnikv 2018-11-23 09:33:01 +01:00
parent 864a2b387a
commit 6da9d19916
2 changed files with 2 additions and 3 deletions

View File

@ -4060,7 +4060,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
{
// If any volume has been added
// Shift-up all volumes of the object so that it has the right elevation with respect to the print bed
double shift_z = print_object->get_elevation();
double shift_z = print_object->get_current_elevation();
for (GLVolume* volume : m_volumes.volumes)
{
if (volume->object_idx() == object_idx)

View File

@ -244,14 +244,13 @@ void Preview::set_drop_target(wxDropTarget* target)
void Preview::load_print()
{
if (m_loaded)
if (m_loaded || m_process->current_printer_technology() != ptFFF)
return;
// we require that there's at least one object and the posSlice step
// is performed on all of them(this ensures that _shifted_copies was
// populated and we know the number of layers)
unsigned int n_layers = 0;
assert(m_process->current_printer_technology() == ptFFF);
const Print *print = m_process->fff_print();
if (print->is_step_done(posSlice))
{