diff options
author | Julian Eisel <julian@blender.org> | 2020-12-23 16:25:58 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2020-12-23 16:34:24 +0300 |
commit | 27fcaa61733827dbb81b69fdeec0db2f656c6f03 (patch) | |
tree | 26e279f330c22e7362bf6b685a2af7cc1c809aea /source/blender/editors/interface/interface_templates.c | |
parent | 78d2ce19c4fbb5678995efae74a6128a3dcc4e73 (diff) |
Cleanup: Move functions to new ED (editor) operators file & general cleanup
With the new `ed_util_ops.c` introduced in 2250b5cefee7, existing code can be
cleaned up to use it.
* Move new ID preview operators to `ed_util_ops.c`
* Move ED operator registration to `ed_util_ops.c`
* Use doxygen sections in `ed_util_ops.c`
* Rename ID related ED operators to use `ED_OT_lib_id_` prefix.
* Remove unused `#include`s
Diffstat (limited to 'source/blender/editors/interface/interface_templates.c')
-rw-r--r-- | source/blender/editors/interface/interface_templates.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c index f134038918d..8349577ff04 100644 --- a/source/blender/editors/interface/interface_templates.c +++ b/source/blender/editors/interface/interface_templates.c @@ -1392,7 +1392,7 @@ static void template_id_name_button( UI_but_extra_operator_icon_add(but, template_ui->unlink_op, WM_OP_INVOKE_DEFAULT, ICON_X); } else if (!never_unlink) { - UI_but_extra_operator_icon_add(but, "ED_OT_lib_unlink", WM_OP_INVOKE_DEFAULT, ICON_X); + UI_but_extra_operator_icon_add(but, "ED_OT_lib_id_unlink", WM_OP_INVOKE_DEFAULT, ICON_X); } } @@ -1401,7 +1401,7 @@ static void template_id_name_button( if (add_extra_fake_user_icon && id->lib == NULL && !(ELEM(GS(id->name), ID_GR, ID_SCE, ID_SCR, ID_TXT, ID_OB, ID_WS))) { UI_but_extra_operator_icon_add(but, - "ED_OT_lib_fake_user_toggle", + "ED_OT_lib_id_fake_user_toggle", WM_OP_INVOKE_DEFAULT, ID_FAKE_USERS(id) ? ICON_FAKE_USER_ON : ICON_FAKE_USER_OFF); } |