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:
authorMatt Ebb <matt@mke3.net>2010-01-20 11:30:40 +0300
committerMatt Ebb <matt@mke3.net>2010-01-20 11:30:40 +0300
commit02ca0fda8ea86c5b5b05b8d1ef6cc81e8f280523 (patch)
tree37fc44b7dab5951dbaa6c45899be99178df6b210 /source/blender/editors/sculpt_paint/paint_image.c
parente8b123a1e46270de28c00d87dba8fd4c1ca2a416 (diff)
Moved the image paint tool and the vertex/weight paint tool (blend mode?)
to the Brush data. This now works the same way as sculpt, with named preset brushes that retain settings.
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_image.c')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_image.c b/source/blender/editors/sculpt_paint/paint_image.c
index 17223e3bc4a..c5dc6f74f58 100644
--- a/source/blender/editors/sculpt_paint/paint_image.c
+++ b/source/blender/editors/sculpt_paint/paint_image.c
@@ -4273,12 +4273,10 @@ static int image_paint_3d_poll(bContext *C)
static int image_paint_2d_clone_poll(bContext *C)
{
- Scene *scene= CTX_data_scene(C);
- ToolSettings *settings= scene->toolsettings;
Brush *brush= image_paint_brush(C);
if(!CTX_wm_region_view3d(C) && image_paint_poll(C))
- if(brush && (settings->imapaint.tool == PAINT_TOOL_CLONE))
+ if(brush && (brush->imagepaint_tool == PAINT_TOOL_CLONE))
if(brush->clone.image)
return 1;
@@ -4386,7 +4384,7 @@ static int texture_paint_init(bContext *C, wmOperator *op)
return 0;
pop->s.brush = brush;
- pop->s.tool = settings->imapaint.tool;
+ pop->s.tool = brush->imagepaint_tool;
if(pop->mode == PAINT_MODE_3D && (pop->s.tool == PAINT_TOOL_CLONE))
pop->s.tool = PAINT_TOOL_DRAW;
pop->s.blend = pop->s.brush->blend;