This commit is contained in:
Andrej730
2024-09-26 18:40:46 +05:00
parent a273c87e41
commit 24f66bbcb4
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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)
@@ -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)