diff options
author | Jeroen Bakker <jbakker> | 2021-12-07 12:14:27 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2021-12-07 12:33:23 +0300 |
commit | e2f0b4a0cbe5934dbd591caa53f9259eee431cee (patch) | |
tree | 7afb67d5b4add1b8f1f4512353afb2d249f15904 /source/blender/editors/sculpt_paint/paint_intern.h | |
parent | 1de363662427ff66693106b4bbde46337d651842 (diff) |
Cleanup: Use rcti marking dirty regions when texture painting.
Dirty regions when painting are not using rcti. Meaning less
understandable code. Found issue when refactoring the image_gpu partial
update. In a future change gpu partial update API will be using rcti
also what makes the code even cleaner.
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D13260
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_intern.h')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_intern.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_intern.h b/source/blender/editors/sculpt_paint/paint_intern.h index 30314742958..d1bcf87e871 100644 --- a/source/blender/editors/sculpt_paint/paint_intern.h +++ b/source/blender/editors/sculpt_paint/paint_intern.h @@ -24,6 +24,9 @@ #pragma once #include "BKE_paint.h" + +#include "BLI_rect.h" + #include "DNA_scene_types.h" #ifdef __cplusplus @@ -45,7 +48,6 @@ struct Scene; struct VPaint; struct ViewContext; struct bContext; -struct rcti; struct wmEvent; struct wmKeyConfig; struct wmOperator; @@ -180,8 +182,7 @@ void ED_vpaint_proj_handle_free(struct VertProjHandle *vp_handle); /* paint_image.c */ typedef struct ImagePaintPartialRedraw { - int x1, y1, x2, y2; /* XXX, could use 'rcti' */ - int enabled; + rcti dirty_region; } ImagePaintPartialRedraw; bool image_texture_paint_poll(struct bContext *C); |