Page MenuHome

LineArt: Use safe lineart_discard_duplicated_edges
ClosedPublic

Authored by YimingWu (NicksBest) on May 10 2022, 9:25 AM.

Details

Summary

The old method doesn't check e for array boundary.

The new method ensures it only access valid elements.

This should fix T96781, if so this should be backported to 3.2 as well.

Diff Detail

Repository
rB Blender

Event Timeline

Sebastian Parborg (zeddb) added inline comments.
source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
759

v1id and v2id is unused.

source/blender/makesdna/DNA_lineart_types.h
61

Grammar nitpick. I think the variable should be:
LRT_EDGE_FLAG_NEXT_IS_DUPLICATE

This revision is now accepted and ready to land.May 17 2022, 4:39 PM