mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
Fix measurement area text showing in wall polyline
This commit is contained in:
@@ -592,7 +592,7 @@ class PolylineDecorator:
|
|||||||
total_length_text_coords = view3d_utils.location_3d_to_region_2d(region, rv3d, polyline_verts[-1])
|
total_length_text_coords = view3d_utils.location_3d_to_region_2d(region, rv3d, polyline_verts[-1])
|
||||||
|
|
||||||
# Area
|
# Area
|
||||||
if measure_type == "AREA":
|
if measure_type == "AREA" and polyline_data.area:
|
||||||
if len(polyline_verts) < 3:
|
if len(polyline_verts) < 3:
|
||||||
return
|
return
|
||||||
value = polyline_data.area
|
value = polyline_data.area
|
||||||
|
|||||||
Reference in New Issue
Block a user