diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-03-10 06:30:53 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-03-10 06:30:53 +0400 |
commit | cb994563509400dfcafecf4d5e7fa2e066f9e55b (patch) | |
tree | d354e85c9bed0c73ea71687848beaeacf025e6ef /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | 948b92ae8c17cb2e9aeaa808702c61fe7eb41f3e (diff) |
* Cleanup: collapse unneeded paint 2d function to the caller. Also, new
code now does not use painter_2d_paint at all. Made sure the approprate
variables of painter_2d are still initialized (They may be refactored to
become part of the ImagePaintState struct)
* Enable pressure control for new code path in texture paint. This revealed a bug, also present in blender 2.66: Size pressure is broken.
This was pretty interesting for me because it indicates that we could support
dynamic size in texture paint: (See anchored brushes)
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index 91ef6b83b36..cb3fda55a26 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -127,7 +127,7 @@ void imapaint_dirty_region(struct Image *ima, struct ImBuf *ibuf, int x, int y, void *paint_2d_new_stroke(struct bContext *, struct wmOperator *); void paint_2d_redraw(const bContext *C, void *ps, int final); void paint_2d_stroke_done(void *ps); -int paint_2d_stroke(void *ps, const int mval[2], float pressure, int eraser); +int paint_2d_stroke(void *ps, const int prev_mval[2], const int mval[2], int eraser); void paint_brush_init_tex(struct Brush *brush); void paint_brush_exit_tex(struct Brush *brush); |