diff --git a/lib/Slic3r/GUI/Plater.pm b/lib/Slic3r/GUI/Plater.pm index 5b93c2562a..42c672bf59 100644 --- a/lib/Slic3r/GUI/Plater.pm +++ b/lib/Slic3r/GUI/Plater.pm @@ -525,6 +525,9 @@ sub remove { $self->stop_background_process; + # Prevent toolpaths preview from rendering while we modify the Print object + $self->{toolpaths2D}->enabled(0) if $self->{toolpaths2D}; + # if no object index is supplied, remove the selected one if (!defined $obj_idx) { ($obj_idx, undef) = $self->selected_object; @@ -547,6 +550,9 @@ sub reset { $self->stop_background_process; + # Prevent toolpaths preview from rendering while we modify the Print object + $self->{toolpaths2D}->enabled(0) if $self->{toolpaths2D}; + @{$self->{objects}} = (); $self->{model}->clear_objects; $self->{print}->clear_objects;