diff options
author | Hans Goudey <h.goudey@me.com> | 2022-04-02 02:30:09 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-04-02 02:30:09 +0300 |
commit | 5387d33e5f954c4cecdb7ffd3d1042d8632d6c15 (patch) | |
tree | 77ef7cdd14c763b95eb2ef3c6411277118f0b621 /source/blender/gpencil_modifiers | |
parent | 69c07adb51832950643f558dff671b55cc8706cd (diff) |
Cleanup: Further use of const for object bounding boxes
Also solves two warnings from the previous similar commit,
f688e3cc3130e70e77f0bb0. The change to the grease pencil
modifier is quite suspicious, but doesn't change the behavior,
which was already broken.
Diffstat (limited to 'source/blender/gpencil_modifiers')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c b/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c index 1ceda0b334b..f3669673094 100644 --- a/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c +++ b/source/blender/gpencil_modifiers/intern/MOD_gpencilarray.c @@ -132,10 +132,10 @@ static void generate_geometry(GpencilModifierData *md, /* Get bounbox for relative offset. */ float size[3] = {0.0f, 0.0f, 0.0f}; if (mmd->flag & GP_ARRAY_USE_RELATIVE) { - const BoundBox *bb = BKE_object_boundbox_get(ob); + BoundBox bb; const float min[3] = {-1.0f, -1.0f, -1.0f}, max[3] = {1.0f, 1.0f, 1.0f}; - BKE_boundbox_init_from_minmax(bb, min, max); - BKE_boundbox_calc_size_aabb(bb, size); + BKE_boundbox_init_from_minmax(&bb, min, max); + BKE_boundbox_calc_size_aabb(&bb, size); mul_v3_fl(size, 2.0f); /* Need a minimum size (for flat drawings). */ CLAMP3_MIN(size, 0.01f); |