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:
authorJohnny Matthews <johnny.matthews@gmail.com>2004-05-15 06:28:03 +0400
committerJohnny Matthews <johnny.matthews@gmail.com>2004-05-15 06:28:03 +0400
commit95c546bd9d9a644edd3dd3f5ca5fb7f6fd51f1de (patch)
tree93fcef71848757ba0eddf10402b0775f39804fc6 /source/blender/src/header_image.c
parentdd2a4a0249a725779ab7aa0bbcd45e79a9b938d6 (diff)
Adds a 'paint' floating panel to the image window to control brush settings for texture paint mode.
Also adds paint and properties to the view menu in image window.
Diffstat (limited to 'source/blender/src/header_image.c')
-rw-r--r--source/blender/src/header_image.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/blender/src/header_image.c b/source/blender/src/header_image.c
index 033c6d4c6f6..7a45fc2d961 100644
--- a/source/blender/src/header_image.c
+++ b/source/blender/src/header_image.c
@@ -381,6 +381,12 @@ static void do_image_viewmenu(void *arg, int event)
G.f |= G_DRAWFACES;
allqueue(REDRAWIMAGE, 0);
break;
+ case 7: /* Properties Panel */
+ add_blockhandler(curarea, IMAGE_HANDLER_PROPERTIES, UI_PNL_UNSTOW);
+ break;
+ case 8: /* Paint Panel... */
+ add_blockhandler(curarea, IMAGE_HANDLER_PAINT, UI_PNL_UNSTOW);
+ break;
}
allqueue(REDRAWVIEW3D, 0);
}
@@ -393,6 +399,10 @@ static uiBlock *image_viewmenu(void *arg_unused)
block= uiNewBlock(&curarea->uiblocks, "image_viewmenu", UI_EMBOSSP, UI_HELV, curarea->headwin);
uiBlockSetButmFunc(block, do_image_viewmenu, NULL);
+
+ uiDefIconTextBut(block, BUTM, 1, ICON_MENU_PANEL, "View Properties...", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 7, "");
+ uiDefIconTextBut(block, BUTM, 1, ICON_MENU_PANEL, "View Paint Tool...", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 8, "");
+
if(G.f & G_DRAWFACES) uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_HLT, "Draw Faces", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 6, "");
else uiDefIconTextBut(block, BUTM, 1, ICON_CHECKBOX_DEHLT, "Draw Faces|", 0, yco-=20, menuwidth, 19, NULL, 0.0, 0.0, 0, 6, "");