From 684a2c8dca6a93d68e62cf8c2502980548efc75c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 27 Feb 2012 18:08:31 +0000 Subject: 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). --- source/blender/editors/space_buttons/buttons_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/editors') 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; -- cgit v1.2.3