Fix T94453: Weld modifier crash after recent cleanup
I had assumed that the span's size was the same as the length variable. In the future, separate lengths could be removed in favor of using lengths directly from spans.
This commit is contained in:
parent
ba38b06a97
commit
dc0bf9b702
Notes:
blender-bot
2023-02-14 05:53:38 +01:00
Referenced by issue #94453, Custom Extrude geometry node setup crashes when adding 'weld' after
|
@ -1040,9 +1040,9 @@ static void weld_poly_loop_ctx_setup(Span<MLoop> mloop,
|
|||
|
||||
if (remain_edge_ctx_len) {
|
||||
|
||||
/* Setup Poly/Loop. */
|
||||
|
||||
for (WeldPoly &wp : wpoly) {
|
||||
/* Setup Poly/Loop. Note that `wpoly_len` may be different than `wpoly.size()` here. */
|
||||
for (const int i : IndexRange(wpoly_len)) {
|
||||
WeldPoly &wp = wpoly[i];
|
||||
const int ctx_loops_len = wp.loops.len;
|
||||
const int ctx_loops_ofs = wp.loops.ofs;
|
||||
|
||||
|
|
Loading…
Reference in New Issue