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/blenkernel/intern/object_update.c | |
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/blenkernel/intern/object_update.c')
-rw-r--r-- | source/blender/blenkernel/intern/object_update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/object_update.c b/source/blender/blenkernel/intern/object_update.c index 3bc2139ca0c..fbbd429f58a 100644 --- a/source/blender/blenkernel/intern/object_update.c +++ b/source/blender/blenkernel/intern/object_update.c @@ -243,7 +243,7 @@ void BKE_object_handle_data_update(Depsgraph *depsgraph, Scene *scene, Object *o /** Bounding box from evaluated geometry. */ static void object_sync_boundbox_to_original(Object *object_orig, Object *object_eval) { - BoundBox *bb = object_eval->runtime.bb; + const BoundBox *bb = object_eval->runtime.bb; if (!bb || (bb->flag & BOUNDBOX_DIRTY)) { BKE_object_boundbox_calc_from_evaluated_geometry(object_eval); } |