diff --git a/src/bonsai/bonsai/bim/module/drawing/ui.py b/src/bonsai/bonsai/bim/module/drawing/ui.py index 5edfb3c101..4d9bc2d9cc 100644 --- a/src/bonsai/bonsai/bim/module/drawing/ui.py +++ b/src/bonsai/bonsai/bim/module/drawing/ui.py @@ -440,12 +440,12 @@ class BIM_PT_sheets(Panel): ifc_file = tool.Ifc.get() ifc_annotations = ifc_file.by_type("IfcAnnotation") drawingid = None - + for annotation in ifc_annotations: Annotation_Name = annotation.Name.replace(",", "") # Remove commas - if Annotation_Name == drawingname: + if Annotation_Name == drawingname: drawingid = annotation.id() - break + break if drawingid is not None: drawing_button = row.row(align=True) diff --git a/src/bonsai/bonsai/bim/module/model/decorator.py b/src/bonsai/bonsai/bim/module/model/decorator.py index 27f1c75c18..317169a66e 100644 --- a/src/bonsai/bonsai/bim/module/model/decorator.py +++ b/src/bonsai/bonsai/bim/module/model/decorator.py @@ -382,9 +382,9 @@ class PolylineDecorator: points.append(Vector((prop[i].x, prop[i].y, prop[i].z))) n = len(points) // 2 - bottom_side_1 = [[i, (i + 1) % (n)] for i in range((n-1)//2)] - bottom_side_2 = [[i, (i + 1) % (n)] for i in range(n//2, n-1)] - bottom_connections = [[i, n-i-1] for i in range(n//2)] + bottom_side_1 = [[i, (i + 1) % (n)] for i in range((n - 1) // 2)] + bottom_side_2 = [[i, (i + 1) % (n)] for i in range(n // 2, n - 1)] + bottom_connections = [[i, n - i - 1] for i in range(n // 2)] bottom_loop = bottom_connections + bottom_side_1 + bottom_side_2 edges.extend(bottom_loop)