diff options
author | Hans Goudey <h.goudey@me.com> | 2020-09-11 22:08:38 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-09-11 22:08:38 +0300 |
commit | a55093711644f1a87eb058d2bed20d530a4de155 (patch) | |
tree | 2406e19c3dc370e4360fd2540f8f6b64a9d89b3b /source/blender/editors/space_buttons/space_buttons.c | |
parent | e22e30283714d03d0b57ebfa3a4dcda35c808c86 (diff) |
UI: Use operator to set property editor's pinned data-block
This commit removes the custom callback that's currently used to set the
property editor's pinned data, replacing it with an operator. This means
"pin" button doesn't have to be defined in C.
Differential Revision: https://developer.blender.org/D8376
Diffstat (limited to 'source/blender/editors/space_buttons/space_buttons.c')
-rw-r--r-- | source/blender/editors/space_buttons/space_buttons.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_buttons/space_buttons.c b/source/blender/editors/space_buttons/space_buttons.c index fd713e7094a..3b7fe45f9c8 100644 --- a/source/blender/editors/space_buttons/space_buttons.c +++ b/source/blender/editors/space_buttons/space_buttons.c @@ -328,6 +328,7 @@ static void buttons_main_region_listener(wmWindow *UNUSED(win), static void buttons_operatortypes(void) { + WM_operatortype_append(BUTTONS_OT_toggle_pin); WM_operatortype_append(BUTTONS_OT_context_menu); WM_operatortype_append(BUTTONS_OT_file_browse); WM_operatortype_append(BUTTONS_OT_directory_browse); |