Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-05-03 13:58:49 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-05-04 03:56:47 +0300
commit80cd292381cb599115782dc98f5999a2fbbe4d67 (patch)
tree5cb7fd07d33ede34da6a1a4d7077f4324d94c216
parent2f79286453edc8c28e994e8a2ccf5f3dcfa9b054 (diff)
Fix T64102: Can't add X-Mirror to quick favorites
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c3
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;
}