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>2012-02-27 22:08:31 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-27 22:08:31 +0400
commit684a2c8dca6a93d68e62cf8c2502980548efc75c (patch)
tree0392863af6ca3471a8891bc1040746bee886488f /source/blender/editors/space_buttons
parent050428049f1f10ac2c8b6ccf7d775c6d9dcfe2ba (diff)
fix for error in python context.copy(), calling in byttons view would raise an exception.
buttons view used incorrect return value. -1 is for valid but not set (could use defines/enum here).
Diffstat (limited to 'source/blender/editors/space_buttons')
-rw-r--r--source/blender/editors/space_buttons/buttons_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_buttons/buttons_context.c b/source/blender/editors/space_buttons/buttons_context.c
index 57981431492..2b63e455e11 100644
--- a/source/blender/editors/space_buttons/buttons_context.c
+++ b/source/blender/editors/space_buttons/buttons_context.c
@@ -777,7 +777,7 @@ int buttons_context(const bContext *C, const char *member, bContextDataResult *r
ButsContextTexture *ct= sbuts->texuser;
if(!ct)
- return 0; /* old shading system */
+ return -1; /* old shading system (found but not available) */
if(ct->user && ct->user->ptr.data) {
ButsTextureUser *user= ct->user;