diff --git a/source/blender/src/drawobject.c b/source/blender/src/drawobject.c index 942ca673761..bd293d28fc7 100644 --- a/source/blender/src/drawobject.c +++ b/source/blender/src/drawobject.c @@ -3624,7 +3624,10 @@ void draw_object(Base *base) } /* draw outline for selected solid objects */ - if(dt>OB_WIRE && ob!=G.obedit && (G.f & G_BACKBUFSEL)==0) draw_solid_select(ob); + if(dt>OB_WIRE && ob!=G.obedit && (G.f & G_BACKBUFSEL)==0) { + if((G.f & (G_VERTEXPAINT|G_FACESELECT|G_TEXTUREPAINT|G_WEIGHTPAINT))==0) + draw_solid_select(ob); + } switch( ob->type) { diff --git a/source/blender/src/interface.c b/source/blender/src/interface.c index 45195a5f60d..d40487745b3 100644 --- a/source/blender/src/interface.c +++ b/source/blender/src/interface.c @@ -2271,6 +2271,9 @@ static int ui_do_but_COL(uiBut *but) block->flag= UI_BLOCK_LOOP|UI_BLOCK_REDRAW|UI_BLOCK_NUMSELECT; block->themecol= TH_BUT_NUM; + // safety, put in beginning otherwise tooltips wont work + uiDefBut(block, LABEL, 0, "", -DPICK,-DPICK, FPICK+3*DPICK+BPICK, FPICK+4*DPICK+BPICK+40, NULL, 0.0, 0.0, 0, 0, ""); + ui_get_but_vectorf(but, col); VECCOPY(palette[UI_PALETTE_TOT], col); // old color stored there, for palette_cb to work @@ -2282,15 +2285,15 @@ static int ui_do_but_COL(uiBut *but) uiButSetFlag(bt, UI_NO_HILITE); // palette - bt=uiDefButF(block, COL, 0, "", FPICK+DPICK, 0, BPICK,BPICK, palette[UI_PALETTE_TOT], 0.0, 0.0, -1, 0, ""); + bt=uiDefButF(block, COL, 0, "rt", FPICK+DPICK, 0, BPICK,BPICK, palette[UI_PALETTE_TOT], 0.0, 0.0, -1, 0, "Old color, click to restore"); uiButSetFunc(bt, do_palette_cb, bt, but); - uiDefButF(block, COL, 0, "", FPICK+DPICK, BPICK+DPICK, BPICK,60-BPICK-DPICK, col, 0.0, 0.0, -1, 0, ""); + uiDefButF(block, COL, 0, "rt1", FPICK+DPICK, BPICK+DPICK, BPICK,60-BPICK-DPICK, col, 0.0, 0.0, -1, 0, "Active color"); h= (DPICK+BPICK+FPICK-64)/(UI_PALETTE_TOT/2.0); for(a=0; adirection= UI_TOP; ui_positionblock(block, but);