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

@ -43,6 +43,7 @@ public:
void update_hollowed_mesh(std::unique_ptr<TriangleMesh> &&mesh);
bool is_selection_rectangle_dragging() const { return m_selection_rectangle.is_dragging(); }
void update_clipping_plane(bool keep_normal = false) const;
private:
bool on_init() override;
@ -96,7 +97,6 @@ private:
void select_point(int i);
void unselect_point(int i);
void reload_cache();
void update_clipping_plane(bool keep_normal = false) const;
protected:
void on_set_state() override;