From 91567e93cc47e6c755dcfa1d6c8c14b52f64c102 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 29 May 2023 17:13:51 +0500 Subject: [PATCH] Fixed Stair annotation bug introduced in 762299124 in 762299124 I've changed number of segments and verts but never adjusted StairDecorator - so it wasn't drawing parts of the annotation --- src/blenderbim/blenderbim/bim/module/drawing/decoration.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/decoration.py b/src/blenderbim/blenderbim/bim/module/drawing/decoration.py index a814b084d0..3a18f10166 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/decoration.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/decoration.py @@ -959,15 +959,13 @@ class StairDecorator(BaseDecorator): # circle head on first vert if edge[0] == 0: circle_head = get_circle_head(circle_size) - add_verts_sequence([v + v0 for v in circle_head], start_i, **out_kwargs, closed=True) - start_i += 12 + start_i = add_verts_sequence([v + v0 for v in circle_head], start_i, **out_kwargs, closed=True) # arrow head on last vert if edge[1] == last_vert: edge_dir = (v1 - v0).normalized() arrow_head = get_arrow_head(edge_dir, arrow_size, rot_matrix_cw, rot_matrix_ccw) - add_verts_sequence([v1 - arrow_head[1], v1, v1 - arrow_head[2]], start_i, **out_kwargs) - start_i += 3 + start_i = add_verts_sequence([v1 - arrow_head[1], v1, v1 - arrow_head[2]], start_i, **out_kwargs) # stem with gaps for arrows add_verts_sequence([v0, v1], start_i, **out_kwargs)