Ifc Text - drop down menu to switch font size

Added drop down menu to Ifc Text section in object properties where you can change text's size and it will automatically change it in `EPset_Annotation.Classes`. You can also preview it in viewport and it will write in IFC only after you finish editing.

Still need to investigate `annotation.Annotator.resize_text(context.active_object)` in `refreshFontSize`.
This commit is contained in:
Andrej730
2023-03-15 18:58:06 +05:00
parent 3c2ef518e8
commit ee1e401719
6 changed files with 90 additions and 28 deletions
@@ -355,8 +355,7 @@ class BIM_PT_text(Panel):
row = self.layout.row(align=True)
row.prop(props, 'font_size')
# a bit hacky way to align box alignment widget
rows = [self.layout.row(align=True) for i in range(3)]
rows = []
for i in range(9):
if i % 3 == 0:
split = rows[i//3].split(factor=0.1, align=True)