[Bf-blender-cvs] [5819421] master: correct recent commit

Campbell Barton noreply at git.blender.org
Sun Mar 30 06:04:59 CEST 2014


Commit: 5819421e1b5b9e8939d2325e7c7c4f90242bcb83
Author: Campbell Barton
Date:   Sun Mar 30 13:22:01 2014 +1100
https://developer.blender.org/rB5819421e1b5b9e8939d2325e7c7c4f90242bcb83

correct recent commit

===================================================================

M	source/blender/blenlib/intern/math_geom_inline.c

===================================================================

diff --git a/source/blender/blenlib/intern/math_geom_inline.c b/source/blender/blenlib/intern/math_geom_inline.c
index 4b1d6a9..0e243c5 100644
--- a/source/blender/blenlib/intern/math_geom_inline.c
+++ b/source/blender/blenlib/intern/math_geom_inline.c
@@ -218,7 +218,7 @@ MINLINE int min_axis_v3(const float vec[3])
  */
 MINLINE int poly_to_tri_count(const int poly_count, const int corner_count)
 {
-	BLI_assert(corner_count > poly_count * 2);
+	BLI_assert(!poly_count || corner_count > poly_count * 2);
 	return corner_count - (poly_count * 2);
 }




More information about the Bf-blender-cvs mailing list