mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 05:22:06 +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]
|
v1 = verts[1]
|
||||||
p0 = location_3d_to_region_2d(region, region3d, v0)
|
p0 = location_3d_to_region_2d(region, region3d, v0)
|
||||||
p1 = location_3d_to_region_2d(region, region3d, v1)
|
p1 = location_3d_to_region_2d(region, region3d, v1)
|
||||||
|
if not p0 or not p1:
|
||||||
|
continue
|
||||||
dir = p1 - p0
|
dir = p1 - p0
|
||||||
if dir.length < 1:
|
if dir.length < 1:
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user