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.
This commit is contained in:
Brecht Van Lommel
2013-04-22 15:03:19 +00:00
parent 75f1157b80
commit 6fb9f5bd41

View File

@@ -102,7 +102,7 @@ typedef struct Panel { /* the part from uiBlock that needs saved in file */
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;