[Bf-blender-cvs] [37d89f3] gtest-testing: Fix polyfill test to compile again after master merge.

Howard Trickey noreply at git.blender.org
Tue Jun 17 15:03:05 CEST 2014


Commit: 37d89f32f61a38f6116358a49ad905ae89f9cb16
Author: Howard Trickey
Date:   Tue Jun 17 09:01:55 2014 -0400
https://developer.blender.org/rB37d89f32f61a38f6116358a49ad905ae89f9cb16

Fix polyfill test to compile again after master merge.

Needed extra coord sign argument.  Should probably add more
tests to test that argument. Also, the Empty test and the
UnorderedColinear tests now fail and need attention.

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

M	source/tests/blenlib_tests/polyfill2d_test.cc

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

diff --git a/source/tests/blenlib_tests/polyfill2d_test.cc b/source/tests/blenlib_tests/polyfill2d_test.cc
index 5c69278..c96236c 100644
--- a/source/tests/blenlib_tests/polyfill2d_test.cc
+++ b/source/tests/blenlib_tests/polyfill2d_test.cc
@@ -147,7 +147,7 @@ static void test_polyfill_area(
 	const unsigned int tris_tot = ARRAY_SIZE(tris); \
 	test_valid_polyfill_prepare(tris, tris_tot); \
 	\
-	BLI_polyfill_calc(poly, poly_tot, tris); \
+	BLI_polyfill_calc(poly, poly_tot, 0, tris); \
 	\
 	test_polyfill_simple(poly, poly_tot, (const unsigned int (*)[3])tris, tris_tot); \
 	test_polyfill_topology(poly, poly_tot, (const unsigned int (*)[3])tris, tris_tot); \
@@ -209,7 +209,7 @@ static void polyfill_to_obj(
 /* BLI_cleanup_path */
 TEST(polyfill2d, Empty)
 {
-	BLI_polyfill_calc(NULL, 0, NULL);
+	BLI_polyfill_calc(NULL, 0, 0, NULL);
 }
 
 // @Override




More information about the Bf-blender-cvs mailing list