diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-01-16 07:00:32 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-01-16 07:02:58 +0300 |
commit | 6299d84e103f3c8e0bb49188f0353220abb5c860 (patch) | |
tree | 101a2c06ad8f857fc99dc6bff42586a693a5d43f /source/blender/blenlib/intern/math_geom.c | |
parent | 5861e1fa28140d6dfe73f1542c0e87c728b028ba (diff) |
Fix uninitialized variable use w/ kdopbvh ray projection
Snapping verts for eg would use these values uninitialized.
Diffstat (limited to 'source/blender/blenlib/intern/math_geom.c')
-rw-r--r-- | source/blender/blenlib/intern/math_geom.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/intern/math_geom.c b/source/blender/blenlib/intern/math_geom.c index d9f4183d8ab..bd1e3d0a12b 100644 --- a/source/blender/blenlib/intern/math_geom.c +++ b/source/blender/blenlib/intern/math_geom.c @@ -860,6 +860,10 @@ float dist_squared_to_projected_aabb( float rtmin, rtmax; int main_axis; + r_axis_closest[0] = false; + r_axis_closest[1] = false; + r_axis_closest[2] = false; + if ((tmax[0] <= tmax[1]) && (tmax[0] <= tmax[2])) { rtmax = tmax[0]; va[0] = vb[0] = local_bvmax[0]; |