BIM Tool - hotkey for editing text annotation

Added hotkey in BIM Tool for editing active text annotation (It's binded on Shift + E).
This commit is contained in:
Andrej730
2023-03-16 13:38:39 +05:00
parent fab7b590f7
commit d8eb765906
5 changed files with 81 additions and 3 deletions
@@ -346,6 +346,9 @@ class BIM_PT_text(Panel):
props = context.active_object.BIMTextProperties
if props.is_editing:
# shares most of the code with EditTextPopup.draw()
# need to keep them in sync or move to some common function
row = self.layout.row(align=True)
row.operator("bim.edit_text", icon="CHECKMARK")
row.operator("bim.disable_editing_text", icon="CANCEL", text="")