mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 18:16:40 +00:00
Fix bug where decorator had errors if the 3D location was outside the 2D window.
Checking for none for `location_3d_to_region_2d` should always be done.
This commit is contained in:
@@ -576,6 +576,8 @@ class PolylineDecorator:
|
||||
pass
|
||||
|
||||
coords = view3d_utils.location_3d_to_region_2d(region, rv3d, mouse_point)
|
||||
if not coords:
|
||||
return
|
||||
padding = 8
|
||||
verts = []
|
||||
edges = []
|
||||
|
||||
Reference in New Issue
Block a user