Fixed use of an uninitialized variable in TriangleSelector caused the cursor radius in TriangleSelector to be mistakenly reset after undo.

This commit is contained in:
Lukáš Hejl 2021-12-17 18:20:43 +01:00
parent 5dc2a5a24e
commit 62d9f73d78

View file

@ -336,7 +336,8 @@ protected:
int m_orig_size_indices = 0;
std::unique_ptr<Cursor> m_cursor;
float m_old_cursor_radius_sqr;
// Zero indicates an uninitialized state.
float m_old_cursor_radius_sqr = 0;
// Private functions:
private: