Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-12-29 05:51:27 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-12-29 05:51:27 +0400
commiteb4090dadf31ccaf5277db6306302d70cc81d820 (patch)
treec03d14b3a262caa7e028142afb9d19864e8a8c8c /source/blender/blenlib/BLI_math_geom.h
parent3f39af9cc2765c2cf3daab30c4ad0be58e341e19 (diff)
Fix missing check if isect_plane_plane_v3 fails to find an intersection.
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r--source/blender/blenlib/BLI_math_geom.h6
1 files changed, 3 insertions, 3 deletions
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],