forked from bartvdbraak/blender
fixed a *really* minor bug where tooltips were not resetting if next
call to add_numbut() asks for a NULL tooltip. --aphex ============================================================ RCS file: /cvs01/blender/source/blender/src/toolbox.c,v retrieving revision 1.4 diff -r1.4 toolbox.c 1356c1356,1360 < if(tip) strcpy(numbuts[nr].tip, tip); --- > if(tip) > strcpy(numbuts[nr].tip, tip); > else > strcpy(numbuts[nr].tip, ""); >
This commit is contained in:
parent
1eb669a62d
commit
a79780b1a4
@ -1353,7 +1353,11 @@ void add_numbut(int nr, int type, char *str, float min, float max, void *poin, c
|
||||
strcpy(numbuts[nr].name, str);
|
||||
numbuts[nr].min= min;
|
||||
numbuts[nr].max= max;
|
||||
if(tip) strcpy(numbuts[nr].tip, tip);
|
||||
if(tip)
|
||||
strcpy(numbuts[nr].tip, tip);
|
||||
else
|
||||
strcpy(numbuts[nr].tip, "");
|
||||
|
||||
|
||||
/* LET OP: TEX BUTTON UITZONDERING */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user