From e2f0b4a0cbe5934dbd591caa53f9259eee431cee Mon Sep 17 00:00:00 2001 From: Jeroen Bakker Date: Tue, 7 Dec 2021 10:14:27 +0100 Subject: 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 --- source/blender/editors/sculpt_paint/paint_intern.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/sculpt_paint/paint_intern.h') 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); -- cgit v1.2.3