Blender Git Loki

Git Commits -> Revision 5a498e6

Revision 5a498e6 by Pi Lanningham (master)
January 4, 2021, 21:13 (GMT)
Fix T84183: Dark area in the bevel custom profile widget

If there was a control point at an extreme position when drawing a curve
profile (in the bottom corner), the fill's trianglulation could fail, giving
a misleading view of the curve. This is because the extra points added to
create a closed shape were exactly on the border of the view.

This commit adds a small margin to those points, so the triangulation
doesn't fail because the line overlaps itself.

Another possible solution is to use a different algorithm to fill
the polygon, such as scanfill, which is used by curve objects.
This seemed simpler, and seems to work fairly robustly.

Differential Revision: https://developer.blender.org/D9989

Commit Details:

Full Hash: 5a498e6a7bfb28ed1bbea21cec31d323f4bed592
Parent Commit: 54ee410
Committed By: Hans Goudey
Lines Changed: +15, -13

1 Modified Path:

/source/blender/editors/interface/interface_draw.c (+15, -13) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021