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.
This commit is contained in:
2019-03-12 16:59:04 +11:00
parent d8daeeb930
commit 873f8b13ec
21 changed files with 36 additions and 36 deletions

View File

@@ -624,7 +624,7 @@ void DM_to_mesh(DerivedMesh *dm, Mesh *me, Object *ob, const CustomData_MeshMask
}
/* skip the listbase */
MEMCPY_STRUCT_OFS(me, &tmp, id.prev);
MEMCPY_STRUCT_AFTER(me, &tmp, id.prev);
if (take_ownership) {
if (alloctype == CD_ASSIGN) {