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:
authorJuho Vepsalainen <bebraw@gmail.com>2007-05-08 23:31:39 +0400
committerJuho Vepsalainen <bebraw@gmail.com>2007-05-08 23:31:39 +0400
commitf280161709f9d19634b2fd4ad49a800f7a2ffea0 (patch)
tree9f963af014b1f28dcc0db3d3e5ffe95cdd9c89c3
parente05125b9bdf096796cf71106fe27ec88030934ef (diff)
Bugfix [ #6593 ] Texture panel does not appear as soon as expected
Texture paint mode toggles were missing some redraws.
-rw-r--r--source/blender/src/header_image.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c
index 9b2c1ff41dc..ea0850d77d0 100644
--- a/source/blender/src/header_image.c
+++ b/source/blender/src/header_image.c
@@ -160,6 +160,7 @@ void do_image_buttons(unsigned short event)
if(G.sima->flag & SI_DRAWTOOL)
/* add new brush if none exists */
brush_check_exists(&G.scene->toolsettings->imapaint.brush);
+ allqueue(REDRAWBUTSSHADING, 0);
allqueue(REDRAWIMAGE, 0);
allqueue(REDRAWVIEW3D, 0);
break;
@@ -662,8 +663,10 @@ static void do_image_imagemenu(void *arg, int event)
pack_image_sima();
break;
case 4: /* Texture Painting */
+ brush_check_exists(&G.scene->toolsettings->imapaint.brush);
if(G.sima->flag & SI_DRAWTOOL) G.sima->flag &= ~SI_DRAWTOOL;
else G.sima->flag |= SI_DRAWTOOL;
+ allqueue(REDRAWBUTSSHADING, 0);
break;
case 5:
save_as_image_sima();