TriangleSelector: Fix of a macOS crash

Calling reset() from constructor relied on uninitialized variable
This commit is contained in:
Lukas Matena 2020-07-21 09:01:17 +02:00
parent afb5d929c4
commit 5a1d9aee15

View file

@ -118,8 +118,8 @@ protected:
float m_edge_limit_sqr = 1.f;
// Number of original vertices and triangles.
int m_orig_size_vertices;
int m_orig_size_indices;
int m_orig_size_vertices = 0;
int m_orig_size_indices = 0;
// Cache for cursor position, radius and direction.
struct Cursor {