From 198fa67cc1afc466432a7ca73141a443de72ef1e Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 12 Apr 2023 11:40:05 +0500 Subject: [PATCH] Focus on text field on edit Ifc Text with BIM Tool hotkey (once again) This option was here before but it was accidentally discarded after f7181aa --- src/blenderbim/blenderbim/bim/module/drawing/operator.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/blenderbim/blenderbim/bim/module/drawing/operator.py b/src/blenderbim/blenderbim/bim/module/drawing/operator.py index bbc1678efe..7e87163ddb 100644 --- a/src/blenderbim/blenderbim/bim/module/drawing/operator.py +++ b/src/blenderbim/blenderbim/bim/module/drawing/operator.py @@ -1370,6 +1370,7 @@ class EditTextPopup(bpy.types.Operator): def draw(self, context): # shares most of the code with BIM_PT_text.draw() # need to keep them in sync or move to some common function + # NOTE: that `popup_active_attribute` is used here when it's not used in `BIM_PT_text.draw()` props = context.active_object.BIMTextProperties @@ -1389,7 +1390,7 @@ class EditTextPopup(bpy.types.Operator): # skip BoxAlignment since we're going to format it ourselves attributes = [a for a in literal_props.attributes if a.name != "BoxAlignment"] - blenderbim.bim.helper.draw_attributes(attributes, box) + blenderbim.bim.helper.draw_attributes(attributes, box, popup_active_attribute=attributes[0]) row = box.row(align=True) cols = [row.column(align=True) for i in range(3)]