[Bf-blender-cvs] [bcf9c73cbc8] master: Fix assert check in BLI_polyfill_beautify
Campbell Barton
noreply at git.blender.org
Sat Jun 5 11:36:52 CEST 2021
Commit: bcf9c73cbc8386bdef1e08af73e66d0e5c57ad6e
Author: Campbell Barton
Date: Sat Jun 5 17:16:37 2021 +1000
Branches: master
https://developer.blender.org/rBbcf9c73cbc8386bdef1e08af73e66d0e5c57ad6e
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