SLA gizmo clipping plane resetting

Clipping plane direction is now initialized when the plane is first moved, not when the gizmo is opened. This is how previous versions worked.
This is a minimal-effort solution before the clipping plane is refactored properly.
This commit is contained in:
Lukas Matena 2020-02-21 08:14:45 +01:00
parent 4df6a645f2
commit 4c22023762
4 changed files with 40 additions and 15 deletions

View file

@ -220,6 +220,7 @@ public:
float m_clipping_plane_distance = 0.f;
std::unique_ptr<ClippingPlane> m_clipping_plane;
bool m_clipping_plane_was_moved = false;
void stash_clipping_plane() {
m_clipping_plane_distance_stash = m_clipping_plane_distance;