[Bf-blender-cvs] [5e6c86cb1fd] blender2.8: GPU_batch_from_poly_2d_encoded: skip winding check

Campbell Barton noreply at git.blender.org
Mon Jan 15 14:51:25 CET 2018


Commit: 5e6c86cb1fdd3083da331f94424a9fe82704593e
Author: Campbell Barton
Date:   Tue Jan 16 00:59:52 2018 +1100
Branches: blender2.8
https://developer.blender.org/rB5e6c86cb1fdd3083da331f94424a9fe82704593e

GPU_batch_from_poly_2d_encoded: skip winding check

Ensure all polygons have the same winding instead.

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

M	source/blender/gpu/intern/gpu_batch.c

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

diff --git a/source/blender/gpu/intern/gpu_batch.c b/source/blender/gpu/intern/gpu_batch.c
index 67a2fc5ab24..d96edb0f2f9 100644
--- a/source/blender/gpu/intern/gpu_batch.c
+++ b/source/blender/gpu/intern/gpu_batch.c
@@ -103,7 +103,7 @@ Gwn_Batch *GPU_batch_from_poly_2d_encoded(
 			const uint verts_len = (&verts[i_vert]) - verts_step;
 			BLI_assert(verts_len >= 3);
 			const uint tris_len = (verts_len - 2);
-			BLI_polyfill_calc(verts_step, verts_len, 0, tris_step);
+			BLI_polyfill_calc(verts_step, verts_len, -1, tris_step);
 			/* offset indices */
 			if (verts_step != verts) {
 				uint *t = tris_step[0];



More information about the Bf-blender-cvs mailing list