diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-10-24 17:25:23 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-10-24 17:25:23 +0300 |
commit | ad3f9c6dfe0f8e061594c856b9b16ac4dfee8cc7 (patch) | |
tree | f586a60ad3b02c1cae0bd653b085ab5f746f5400 /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | ce6e7a094173c288e497e982c55b33f2135d83be (diff) |
Fix crash drawing the paint cursor over the redo region
Also fix CTX_wm_region_view3d which didn't check the region type.
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 19380fb9022..84665728e17 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -191,7 +191,7 @@ struct ImagePaintPartialRedraw *get_imapaintpartial(void); void set_imapaintpartial(struct ImagePaintPartialRedraw *ippr); void imapaint_region_tiles( struct ImBuf *ibuf, int x, int y, int w, int h, int *tx, int *ty, int *tw, int *th); -int get_imapaint_zoom(struct bContext *C, float *zoomx, float *zoomy); +bool get_imapaint_zoom(struct bContext *C, float *zoomx, float *zoomy); void *paint_2d_new_stroke(struct bContext *, struct wmOperator *, int mode); void paint_2d_redraw(const struct bContext *C, void *ps, bool final); void paint_2d_stroke_done(void *ps); |