Skip to content

Commit

Permalink
SLA preview - Do not show full object when slider is at 1st layer
Browse files Browse the repository at this point in the history
  • Loading branch information
enricoturri1966 committed Jan 28, 2021
1 parent b178a1b commit c54ce89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slic3r/GUI/GUI_Preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,6 +974,7 @@ void Preview::load_print_as_sla()
sort_remove_duplicates(zs);

m_canvas->reset_clipping_planes_cache();
m_canvas->set_use_clipping_planes(true);

n_layers = (unsigned int)zs.size();
if (n_layers == 0) {
Expand Down Expand Up @@ -1007,7 +1008,6 @@ void Preview::on_layers_slider_scroll_changed(wxCommandEvent& event)
else if (tech == ptSLA) {
m_canvas->set_clipping_plane(0, ClippingPlane(Vec3d::UnitZ(), -m_layers_slider->GetLowerValueD()));
m_canvas->set_clipping_plane(1, ClippingPlane(-Vec3d::UnitZ(), m_layers_slider->GetHigherValueD()));
m_canvas->set_use_clipping_planes(m_layers_slider->GetHigherValue() != 0);
m_canvas->render();
}
}
Expand Down

0 comments on commit c54ce89

Please sign in to comment.