mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 19:07:57 +00:00
Fix #2705. Annotation draw error when splines are outside the zoom level of the screen.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user