From 2e043c266bfff4b0de7c1cb2b324549cdf5a742b Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 15 Mar 2019 10:49:26 -0300 Subject: Fix: "Jump To Target" showing up in workspace context menu Issue introduced on d227c58e3ec2020. This was affecting WorkSpaces as well as background scene and probably other places. We use the operator poll to decide whether to show it. Reviewers: brecht, mont29 Differential Revision: https://developer.blender.org/D4488 --- source/blender/editors/interface/interface_intern.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/editors/interface/interface_intern.h') diff --git a/source/blender/editors/interface/interface_intern.h b/source/blender/editors/interface/interface_intern.h index e5f6f09e2eb..b0eb63712e2 100644 --- a/source/blender/editors/interface/interface_intern.h +++ b/source/blender/editors/interface/interface_intern.h @@ -900,4 +900,8 @@ typedef struct uiRNACollectionSearch { } uiRNACollectionSearch; void ui_rna_collection_search_cb(const struct bContext *C, void *arg, const char *str, uiSearchItems *items); +/* interface_ops.c */ +bool ui_jump_to_target_button_poll(struct bContext *C); + + #endif /* __INTERFACE_INTERN_H__ */ -- cgit v1.2.3