From 5387d33e5f954c4cecdb7ffd3d1042d8632d6c15 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Fri, 1 Apr 2022 18:30:09 -0500 Subject: 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. --- intern/rigidbody/RBI_api.h | 4 ++-- intern/rigidbody/rb_bullet_api.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'intern') diff --git a/intern/rigidbody/RBI_api.h b/intern/rigidbody/RBI_api.h index 4065240a704..791a4a6ac05 100644 --- a/intern/rigidbody/RBI_api.h +++ b/intern/rigidbody/RBI_api.h @@ -246,8 +246,8 @@ void RB_shape_trimesh_update(rbCollisionShape *shape, float *vertices, int num_verts, int vert_stride, - float min[3], - float max[3]); + const float min[3], + const float max[3]); /* ********************************** */ /* Constraints */ diff --git a/intern/rigidbody/rb_bullet_api.cpp b/intern/rigidbody/rb_bullet_api.cpp index 88b146384e1..ac8026be41b 100644 --- a/intern/rigidbody/rb_bullet_api.cpp +++ b/intern/rigidbody/rb_bullet_api.cpp @@ -802,8 +802,8 @@ void RB_shape_trimesh_update(rbCollisionShape *shape, float *vertices, int num_verts, int vert_stride, - float min[3], - float max[3]) + const float min[3], + const float max[3]) { if (shape->mesh == NULL || num_verts != shape->mesh->num_vertices) { return; -- cgit v1.2.3