Fixed lifting of models for SLA above the print if supports
or pad are calculated.
This commit is contained in:
parent
864a2b387a
commit
6da9d19916
@ -4060,7 +4060,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re
|
|||||||
{
|
{
|
||||||
// If any volume has been added
|
// 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
|
// 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)
|
for (GLVolume* volume : m_volumes.volumes)
|
||||||
{
|
{
|
||||||
if (volume->object_idx() == object_idx)
|
if (volume->object_idx() == object_idx)
|
||||||
|
@ -244,14 +244,13 @@ void Preview::set_drop_target(wxDropTarget* target)
|
|||||||
|
|
||||||
void Preview::load_print()
|
void Preview::load_print()
|
||||||
{
|
{
|
||||||
if (m_loaded)
|
if (m_loaded || m_process->current_printer_technology() != ptFFF)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// we require that there's at least one object and the posSlice step
|
// 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
|
// is performed on all of them(this ensures that _shifted_copies was
|
||||||
// populated and we know the number of layers)
|
// populated and we know the number of layers)
|
||||||
unsigned int n_layers = 0;
|
unsigned int n_layers = 0;
|
||||||
assert(m_process->current_printer_technology() == ptFFF);
|
|
||||||
const Print *print = m_process->fff_print();
|
const Print *print = m_process->fff_print();
|
||||||
if (print->is_step_done(posSlice))
|
if (print->is_step_done(posSlice))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user