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:
@@ -54,7 +54,7 @@
|
||||
|
||||
void BKE_camera_init(Camera *cam)
|
||||
{
|
||||
BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(cam, id));
|
||||
BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(cam, id));
|
||||
|
||||
cam->lens = 50.0f;
|
||||
cam->sensor_x = DEFAULT_SENSOR_WIDTH;
|
||||
|
||||
Reference in New Issue
Block a user