diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-03 13:58:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-04 03:56:47 +0300 |
commit | 80cd292381cb599115782dc98f5999a2fbbe4d67 (patch) | |
tree | 5cb7fd07d33ede34da6a1a4d7077f4324d94c216 /source/blender/editors/space_buttons | |
parent | 2f79286453edc8c28e994e8a2ccf5f3dcfa9b054 (diff) |
Fix T64102: Can't add X-Mirror to quick favorites
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c index 607c3ddbb10..577f7a7af8a 100644 --- a/source/blender/editors/space_buttons/buttons_context.c +++ b/source/blender/editors/space_buttons/buttons_context.c @@ -785,7 +785,8 @@ int buttons_context(const bContext *C, const char *member, bContextDataResult *r SpaceProperties *sbuts = CTX_wm_space_properties(C); ButsContextPath *path = sbuts ? sbuts->path : NULL; - if (!path) { + /* A zero sized path will be set for 'BCONTEXT_TOOL'. */ + if (!path || !path->len) { return 0; } |