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/blenkernel/intern/lightprobe.c
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/blenkernel/intern/lightprobe.c')
-rw-r--r--source/blender/blenkernel/intern/lightprobe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/lightprobe.c b/source/blender/blenkernel/intern/lightprobe.c
index 1d46f1aa5d3..12568c9aa2a 100644
--- a/source/blender/blenkernel/intern/lightprobe.c
+++ b/source/blender/blenkernel/intern/lightprobe.c
@@ -33,7 +33,7 @@
void BKE_lightprobe_init(LightProbe *probe)
{
- BLI_assert(MEMCMP_STRUCT_OFS_IS_ZERO(probe, id));
+ BLI_assert(MEMCMP_STRUCT_AFTER_IS_ZERO(probe, id));
probe->grid_resolution_x = probe->grid_resolution_y = probe->grid_resolution_z = 4;
probe->distinf = 2.5f;