From eb4090dadf31ccaf5277db6306302d70cc81d820 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 29 Dec 2013 12:51:27 +1100 Subject: Fix missing check if isect_plane_plane_v3 fails to find an intersection. --- source/blender/blenlib/BLI_math_geom.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/blenlib/BLI_math_geom.h') diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index e99f89036b3..e800369a682 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -140,11 +140,11 @@ bool isect_ray_plane_v3(const float p1[3], const float d[3], bool isect_point_planes_v3(float (*planes)[4], int totplane, const float p[3]); bool isect_line_plane_v3(float out[3], const float l1[3], const float l2[3], - const float plane_co[3], const float plane_no[3]); + const float plane_co[3], const float plane_no[3]) ATTR_WARN_UNUSED_RESULT; -void isect_plane_plane_v3(float r_isect_co[3], float r_isect_no[3], +bool isect_plane_plane_v3(float r_isect_co[3], float r_isect_no[3], const float plane_a_co[3], const float plane_a_no[3], - const float plane_b_co[3], const float plane_b_no[3]); + const float plane_b_co[3], const float plane_b_no[3]) ATTR_WARN_UNUSED_RESULT; /* line/ray triangle */ bool isect_line_tri_v3(const float p1[3], const float p2[3], -- cgit v1.2.3