From 873f8b13eceb19ecf439e678b4b2e9de86300c14 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 12 Mar 2019 16:59:04 +1100 Subject: Cleanup: BLI_utildefines struct macros Use the term "AFTER" instead of "OFS" since it wasn't obvious these macros operate on everything after the struct member passed. Avoid casting to non-const types when only reading. --- source/blender/editors/sculpt_paint/paint_image_proj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/sculpt_paint') diff --git a/source/blender/editors/sculpt_paint/paint_image_proj.c b/source/blender/editors/sculpt_paint/paint_image_proj.c index d712d0671f8..0d331953f4b 100644 --- a/source/blender/editors/sculpt_paint/paint_image_proj.c +++ b/source/blender/editors/sculpt_paint/paint_image_proj.c @@ -381,10 +381,10 @@ typedef struct ProjPaintState { */ #define PROJ_PAINT_STATE_SHARED_MEMCPY(ps_dst, ps_src) \ - MEMCPY_STRUCT_OFS(ps_dst, ps_src, is_shared_user) + MEMCPY_STRUCT_AFTER(ps_dst, ps_src, is_shared_user) #define PROJ_PAINT_STATE_SHARED_CLEAR(ps) \ - MEMSET_STRUCT_OFS(ps, 0, is_shared_user) + MEMSET_STRUCT_AFTER(ps, 0, is_shared_user) bool is_shared_user; -- cgit v1.2.3