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:
		@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user