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).
This commit is contained in:
Campbell Barton 2012-02-27 18:08:31 +00:00
parent 050428049f
commit 684a2c8dca

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