diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-27 22:08:31 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-27 22:08:31 +0400 |
commit | 684a2c8dca6a93d68e62cf8c2502980548efc75c (patch) | |
tree | 0392863af6ca3471a8891bc1040746bee886488f /source/blender | |
parent | 050428049f1f10ac2c8b6ccf7d775c6d9dcfe2ba (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')
-rw-r--r-- | source/blender/editors/space_buttons/buttons_context.c | 2 |
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; |