Fix #2705. Annotation draw error when splines are outside the zoom level of the screen.

This commit is contained in:
Dion Moult
2023-01-27 14:32:41 +11:00
parent f7af38c863
commit 24f3918769
@@ -1243,6 +1243,8 @@ class SectionLevelDecorator(LevelDecorator):
v1 = verts[1]
p0 = location_3d_to_region_2d(region, region3d, v0)
p1 = location_3d_to_region_2d(region, region3d, v1)
if not p0 or not p1:
continue
dir = p1 - p0
if dir.length < 1:
continue