Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit 0365c6d

Browse files
committed
More consistent PlanLevel and SectionLevel in viewport and svg
Now it's using first vert instead of last to calculate height (same way svgwriter does it)
1 parent 18b6969 commit 0365c6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/blenderbim/blenderbim/bim/module/drawing/decoration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ def draw_labels(self, context, obj, splines):
10891089
box_alignment = "bottom-right"
10901090
dir *= -1
10911091

1092-
z = verts[-1].z / unit_scale
1092+
z = verts[0].z / unit_scale
10931093
z = ifcopenshell.util.geolocation.auto_z2e(tool.Ifc.get(), z)
10941094
z *= unit_scale
10951095
text = "RL " + self.format_value(context, z)
@@ -1147,7 +1147,7 @@ def draw_labels(self, context, obj, splines, text_position, text_dir):
11471147
tag = storey.Name if storey else element.Description
11481148

11491149
for verts in splines:
1150-
z = verts[-1].z / unit_scale
1150+
z = verts[0].z / unit_scale
11511151
z = ifcopenshell.util.geolocation.auto_z2e(tool.Ifc.get(), z)
11521152
z *= unit_scale
11531153

0 commit comments

Comments
 (0)