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.
This commit is contained in:
parent
3ad0344171
commit
2685d45fa2
@ -1539,7 +1539,7 @@ static bool snapDerivedMesh(
|
|||||||
float ray_start_local[3], ray_normal_local[3];
|
float ray_start_local[3], ray_normal_local[3];
|
||||||
float local_scale, local_depth, len_diff;
|
float local_scale, local_depth, len_diff;
|
||||||
|
|
||||||
BVHTreeFromMesh treedata;
|
BVHTreeFromMesh treedata = {0};
|
||||||
|
|
||||||
invert_m4_m4(imat, obmat);
|
invert_m4_m4(imat, obmat);
|
||||||
transpose_m3_m4(timat, imat);
|
transpose_m3_m4(timat, imat);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user