diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2020-12-31 16:07:58 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2020-12-31 16:07:58 +0300 |
commit | 90918ce7adaa7b60d67370fb9929f0b4770bcf7a (patch) | |
tree | 26dce071f1ec4e8dd4ecbc4fe085bff7abcbbba5 /blenderkit/ui_panels.py | |
parent | ac2ae65989f10a03f7a1009ddccddef07e8a9bac (diff) |
BlenderKit Fast metadata edit operator
Shortcut Ctrl+F or menu item in asset context menu.
Also several fixes to logging
Diffstat (limited to 'blenderkit/ui_panels.py')
-rw-r--r-- | blenderkit/ui_panels.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/blenderkit/ui_panels.py b/blenderkit/ui_panels.py index f3e0491e..985a846b 100644 --- a/blenderkit/ui_panels.py +++ b/blenderkit/ui_panels.py @@ -1282,6 +1282,12 @@ def draw_asset_context_menu(self, context, asset_data, from_panel=False): if author_id == str(profile['user']['id']): layout.label(text='Management tools:') + + row = layout.row() + row.operator_context = 'INVOKE_DEFAULT' + op = layout.operator('wm.blenderkit_fast_metadata', text='Fast Edit Metadata') + op.asset_id = asset_data['id'] + row = layout.row() row.operator_context = 'INVOKE_DEFAULT' op = row.operator('object.blenderkit_change_status', text='Delete') |