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/buttons_intern.h | |
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/buttons_intern.h')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_buttons/buttons_intern.h b/source/blender/editors/space_buttons/buttons_intern.h index 911cf4526bb..a1e2b9e9aaf 100644 --- a/source/blender/editors/space_buttons/buttons_intern.h +++ b/source/blender/editors/space_buttons/buttons_intern.h @@ -93,6 +93,7 @@ extern const char *buttons_context_dir[]; /* doc access */ void buttons_texture_context_compute(const struct bContext *C, struct SpaceProperties *sbuts); /* buttons_ops.c */ +void BUTTONS_OT_toggle_pin(struct wmOperatorType *ot); void BUTTONS_OT_file_browse(struct wmOperatorType *ot); void BUTTONS_OT_directory_browse(struct wmOperatorType *ot); void BUTTONS_OT_context_menu(struct wmOperatorType *ot); |