[Bf-blender-cvs] [80cd292381c] master: Fix T64102: Can't add X-Mirror to quick favorites

Campbell Barton noreply at git.blender.org
Sat May 4 02:57:13 CEST 2019


Commit: 80cd292381cb599115782dc98f5999a2fbbe4d67
Author: Campbell Barton
Date:   Fri May 3 20:58:49 2019 +1000
Branches: master
https://developer.blender.org/rB80cd292381cb599115782dc98f5999a2fbbe4d67

Fix T64102: Can't add X-Mirror to quick favorites

===================================================================

M	source/blender/editors/space_buttons/buttons_context.c

===================================================================

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;
   }



More information about the Bf-blender-cvs mailing list