SLA gizmos: make sure that the clipping plane is properly reset to zero when the shown meshes are exchanged

This commit is contained in:
Lukas Matena 2020-02-06 14:46:02 +01:00
parent f902fc3445
commit 3c23917e9e
3 changed files with 17 additions and 6 deletions

View file

@ -80,6 +80,7 @@ public:
bool is_selection_rectangle_dragging() const { return m_selection_rectangle.is_dragging(); }
bool has_backend_supports() const;
void reslice_SLA_supports(bool postpone_error_messages = false) const;
void update_clipping_plane(bool keep_normal = false) const;
private:
bool on_init() override;
@ -139,7 +140,6 @@ private:
void switch_to_editing_mode();
void disable_editing_mode();
void reset_clipping_plane_normal() const;
void update_clipping_plane(bool keep_normal = false) const;
protected:
void on_set_state() override;