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:
Dion Moult
2025-01-28 10:33:08 +11:00
parent 562c32b96e
commit 4d052ba864
@@ -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 = []