Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-12 08:59:04 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-12 09:44:35 +0300
commit873f8b13eceb19ecf439e678b4b2e9de86300c14 (patch)
treec54bb366b8925e10a5e62f695e19d010f55356d7 /source/blender/editors/sculpt_paint
parentd8daeeb9300953ee175e06c8fc1aa3a44a72da20 (diff)
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.
Diffstat (limited to 'source/blender/editors/sculpt_paint')
-rw-r--r--source/blender/editors/sculpt_paint/paint_image_proj.c4
1 files changed, 2 insertions, 2 deletions
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;