[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [44491] trunk/blender/source/blender/ editors/space_buttons/buttons_context.c: fix for error in python context. copy(), calling in byttons view would raise an exception.

Campbell Barton ideasman42 at gmail.com
Mon Feb 27 19:08:35 CET 2012


Revision: 44491
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=44491
Author:   campbellbarton
Date:     2012-02-27 18:08:31 +0000 (Mon, 27 Feb 2012)
Log Message:
-----------
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).

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_buttons/buttons_context.c

Modified: trunk/blender/source/blender/editors/space_buttons/buttons_context.c
===================================================================
--- trunk/blender/source/blender/editors/space_buttons/buttons_context.c	2012-02-27 17:38:16 UTC (rev 44490)
+++ trunk/blender/source/blender/editors/space_buttons/buttons_context.c	2012-02-27 18:08:31 UTC (rev 44491)
@@ -777,7 +777,7 @@
 		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; 




More information about the Bf-blender-cvs mailing list