Skip to content

Commit 0799a78

Browse files
committed
aligned grid labels horizontally
1 parent a073015 commit 0799a78

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/ifcblenderexport/blenderbim/bim/decoration.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,9 +1020,7 @@ def draw_labels(self, obj, vertices):
10201020
v1 = Vector(vertices[1])
10211021
p0 = location_3d_to_region_2d(region, region3d, v0)
10221022
p1 = location_3d_to_region_2d(region, region3d, v1)
1023-
dir = p1 - p0
1024-
if dir.length < 1:
1025-
return
1023+
dir = Vector((1, 0))
10261024
text = obj.BIMObjectProperties.attributes['AxisTag'].string_value
10271025
self.draw_label(text, p0, dir, vcenter=True, gap=0)
10281026
self.draw_label(text, p1, dir, vcenter=True, gap=0)

0 commit comments

Comments
 (0)