[Bf-blender-cvs] [0282a842683] asset-browser-poselib: Fix assert check in BLI_polyfill_beautify

Campbell Barton noreply at git.blender.org
Sat Jun 5 18:03:04 CEST 2021


Commit: 0282a842683c6071668f77958f4536ee973b5324
Author: Campbell Barton
Date:   Sat Jun 5 17:16:37 2021 +1000
Branches: asset-browser-poselib
https://developer.blender.org/rB0282a842683c6071668f77958f4536ee973b5324

Fix assert check in BLI_polyfill_beautify

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

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

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

diff --git a/source/blender/blenlib/intern/polyfill_2d_beautify.c b/source/blender/blenlib/intern/polyfill_2d_beautify.c
index 7bfca149ffb..98fa5c872b0 100644
--- a/source/blender/blenlib/intern/polyfill_2d_beautify.c
+++ b/source/blender/blenlib/intern/polyfill_2d_beautify.c
@@ -375,7 +375,7 @@ void BLI_polyfill_beautify(const float (*coords)[2],
   for (uint i = 0, base_index = 0; i < order_edges_len; base_index++) {
     const struct OrderEdge *oe_a = &order_edges[i++];
     const struct OrderEdge *oe_b = &order_edges[i++];
-    BLI_assert(oe_a->verts[0] == oe_a->verts[0] && oe_a->verts[1] == oe_a->verts[1]);
+    BLI_assert(oe_a->verts[0] == oe_b->verts[0] && oe_a->verts[1] == oe_b->verts[1]);
     half_edges[oe_a->e_half].e_radial = oe_b->e_half;
     half_edges[oe_b->e_half].e_radial = oe_a->e_half;
     half_edges[oe_a->e_half].base_index = base_index;



More information about the Bf-blender-cvs mailing list