Added Verse and Node-editor icons in blenderbuttons.c
(Both needed for later) Found bug in interface.c for translation of Panel header, using && instead of a logical &.
This commit is contained in:
@@ -50,7 +50,7 @@ typedef enum {
|
||||
ICON_NLA,
|
||||
ICON_SCRIPTWIN,
|
||||
ICON_TIME,
|
||||
ICON_SPACE1,
|
||||
ICON_NODE,
|
||||
ICON_SPACE2,
|
||||
ICON_SPACE3,
|
||||
ICON_SPACE4,
|
||||
@@ -91,7 +91,7 @@ typedef enum {
|
||||
ICON_MAYBE_ITS_A_LASSO,
|
||||
ICON_BLANK1, /* ATTENTION, someone decided to use this throughout blender
|
||||
and didn't care to neither rename it nor update the PNG */
|
||||
ICON_BLANK2,
|
||||
ICON_VERSE,
|
||||
ICON_MOD_BOOLEAN,
|
||||
ICON_ARMATURE,
|
||||
ICON_PAUSE,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5649,12 +5649,12 @@ short pupmenu(char *instr)
|
||||
md= decompose_menu_string(instr);
|
||||
|
||||
/* size and location, title slightly bigger for bold */
|
||||
if(md->title) width= 2*strlen(md->title)+BIF_GetStringWidth(uiBlockGetCurFont(block), md->title, (U.transopts && USER_TR_BUTTONS));
|
||||
if(md->title) width= 2*strlen(md->title)+BIF_GetStringWidth(uiBlockGetCurFont(block), md->title, (U.transopts & USER_TR_BUTTONS));
|
||||
else width= 0;
|
||||
for(a=0; a<md->nitems; a++) {
|
||||
char *name= md->items[a].str;
|
||||
|
||||
xmax= BIF_GetStringWidth(uiBlockGetCurFont(block), md->items[a].str, (U.transopts && USER_TR_BUTTONS));
|
||||
xmax= BIF_GetStringWidth(uiBlockGetCurFont(block), md->items[a].str, (U.transopts & USER_TR_BUTTONS));
|
||||
if(xmax>width) width= xmax;
|
||||
|
||||
if( strcmp(name, "%l")==0) height+= PUP_LABELH;
|
||||
|
||||
Reference in New Issue
Block a user