diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-05 20:48:15 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2016-02-05 20:48:15 +0300 |
commit | 2685d45fa2b26e713b9e7d0e9f618fffe62a843c (patch) | |
tree | 9218dc978b16cc310f4299f121ba1b3988965b4b /source | |
parent | 3ad0344171dfa6a6116882e2e3b04ede26d4be65 (diff) |
Fix error in last commit.
treedata could have a non-initialized tree in case of edge_snapping, leading to segfault.
Spotted by @mano-wii, thanks.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/transform/transform_snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/transform/transform_snap.c b/source/blender/editors/transform/transform_snap.c index c7586ff3f47..89bb63dd906 100644 --- a/source/blender/editors/transform/transform_snap.c +++ b/source/blender/editors/transform/transform_snap.c @@ -1539,7 +1539,7 @@ static bool snapDerivedMesh( float ray_start_local[3], ray_normal_local[3]; float local_scale, local_depth, len_diff; - BVHTreeFromMesh treedata; + BVHTreeFromMesh treedata = {0}; invert_m4_m4(imat, obmat); transpose_m3_m4(timat, imat); |