Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2007-01-26 00:43:49 +0300
committerTon Roosendaal <ton@blender.org>2007-01-26 00:43:49 +0300
commit497b028a33e7395bd2101f26c4ad4678b59d8ae2 (patch)
tree33a791e933121dd54b35a1a8a9b2ded9ce8b476d /source/blender/src
parent8de165ff562ccac18b8ff3057797147129a062bf (diff)
Two fixes:
- Previous fix (commit today) for outliner-selecting and mode disabling forgot to do this for texture paint. - outliner: theme color drawing for background was using char with overflow possibility.
Diffstat (limited to 'source/blender/src')
-rw-r--r--source/blender/src/editview.c13
-rw-r--r--source/blender/src/outliner.c6
2 files changed, 9 insertions, 10 deletions
diff --git a/source/blender/src/editview.c b/source/blender/src/editview.c
index 02b28f1e8d9..6a79d9b4ddd 100644
--- a/source/blender/src/editview.c
+++ b/source/blender/src/editview.c
@@ -1076,15 +1076,14 @@ void set_active_base(Base *base)
/* activating a non-mesh, should end a couple of modes... */
if(base) {
if(base->object->type!=OB_MESH) {
- if(G.f & G_SCULPTMODE) {
- set_sculptmode();
- }
- if(G.f & G_WEIGHTPAINT) {
+ if(G.f & G_SCULPTMODE)
+ set_sculptmode(); /* toggle */
+ if(G.f & G_WEIGHTPAINT)
set_wpaint(); /* toggle */
- }
- if(G.f & G_VERTEXPAINT) {
+ if(G.f & G_VERTEXPAINT)
set_vpaint(); /* toggle */
- }
+ if(G.f & G_TEXTUREPAINT)
+ set_texturepaint(); /* Switch off tex paint */
}
/* always end this */
if(G.f & G_FACESELECT) {
diff --git a/source/blender/src/outliner.c b/source/blender/src/outliner.c
index 6ea41e8c4b5..8bb2797405b 100644
--- a/source/blender/src/outliner.c
+++ b/source/blender/src/outliner.c
@@ -3176,7 +3176,7 @@ static void outliner_draw_tree(SpaceOops *soops)
{
TreeElement *te;
int starty, startx;
- char col[4];
+ float col[4];
#ifdef INTERNATIONAL
FTF_SetFontSize('l');
@@ -3186,8 +3186,8 @@ static void outliner_draw_tree(SpaceOops *soops)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); // only once
// selection first
- BIF_GetThemeColor3ubv(TH_BACK, col);
- glColor3ub(col[0]+15, col[1]+20, col[2]+25);
+ BIF_GetThemeColor3fv(TH_BACK, col);
+ glColor3f(col[0]+0.06f, col[1]+0.08f, col[2]+0.10f);
starty= soops->v2d.tot.ymax-OL_H;
outliner_draw_selection(soops, &soops->tree, &starty);