[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56210] trunk/blender/source/blender/ makesdna/DNA_screen_types.h: Fix #35051: when viewing a complex node setup in the material properties, the

Brecht Van Lommel brechtvanlommel at pandora.be
Mon Apr 22 17:03:20 CEST 2013


Revision: 56210
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56210
Author:   blendix
Date:     2013-04-22 15:03:19 +0000 (Mon, 22 Apr 2013)
Log Message:
-----------
Fix #35051: when viewing a complex node setup in the material properties, the
properties were continuously redrawing, which slowed down everything else.

The problem was integer overflow, with a short only capable of storing values
up to 32767. Note that sockets are collapsed by default since the previous
release, and that's it's not very useful to edit such complex node setups in
the properties editor, it's mainly meant for simple setups or group nodes to
present just a few sockets.

Modified Paths:
--------------
    trunk/blender/source/blender/makesdna/DNA_screen_types.h

Modified: trunk/blender/source/blender/makesdna/DNA_screen_types.h
===================================================================
--- trunk/blender/source/blender/makesdna/DNA_screen_types.h	2013-04-22 14:56:41 UTC (rev 56209)
+++ trunk/blender/source/blender/makesdna/DNA_screen_types.h	2013-04-22 15:03:19 UTC (rev 56210)
@@ -102,7 +102,7 @@
 
 	char panelname[64], tabname[64];	/* defined as UI_MAX_NAME_STR */
 	char drawname[64];					/* panelname is identifier for restoring location */
-	short ofsx, ofsy, sizex, sizey;
+	int ofsx, ofsy, sizex, sizey;
 	short labelofs, pad;
 	short flag, runtime_flag;
 	short control;




More information about the Bf-blender-cvs mailing list