mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +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
|
pass
|
||||||
|
|
||||||
coords = view3d_utils.location_3d_to_region_2d(region, rv3d, mouse_point)
|
coords = view3d_utils.location_3d_to_region_2d(region, rv3d, mouse_point)
|
||||||
|
if not coords:
|
||||||
|
return
|
||||||
padding = 8
|
padding = 8
|
||||||
verts = []
|
verts = []
|
||||||
edges = []
|
edges = []
|
||||||
|
|||||||
Reference in New Issue
Block a user