forked from bartvdbraak/blender
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:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user