summaryrefslogtreecommitdiffstats
path: root/servers/rendering/storage/mesh_storage.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-10 09:51:22 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-10 09:51:22 +0200
commitbc4c60c933c8ced636be14dc34f0dffa65f4fa95 (patch)
tree51e0ad5cee421409551b7950fa7480440f94ac93 /servers/rendering/storage/mesh_storage.h
parent91c66b5b7d9238b3a15cb853a153b067e778edba (diff)
parentf04a9bb63027fb5284070b3d8f51d094f37b59f8 (diff)
downloadredot-engine-bc4c60c933c8ced636be14dc34f0dffa65f4fa95.tar.gz
Merge pull request #94893 from rune-scape/no-const-cast-mesh-storage
Avoid `const_cast` in `mesh_storage.h`
Diffstat (limited to 'servers/rendering/storage/mesh_storage.h')
-rw-r--r--servers/rendering/storage/mesh_storage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/servers/rendering/storage/mesh_storage.h b/servers/rendering/storage/mesh_storage.h
index ecd2a967d0..5e3a4738e6 100644
--- a/servers/rendering/storage/mesh_storage.h
+++ b/servers/rendering/storage/mesh_storage.h
@@ -151,7 +151,7 @@ public:
virtual void multimesh_set_visible_instances(RID p_multimesh, int p_visible);
virtual int multimesh_get_visible_instances(RID p_multimesh) const;
- virtual AABB multimesh_get_aabb(RID p_multimesh) const;
+ virtual AABB multimesh_get_aabb(RID p_multimesh);
virtual RID _multimesh_allocate() = 0;
virtual void _multimesh_initialize(RID p_rid) = 0;
@@ -183,7 +183,7 @@ public:
virtual void _multimesh_set_visible_instances(RID p_multimesh, int p_visible) = 0;
virtual int _multimesh_get_visible_instances(RID p_multimesh) const = 0;
- virtual AABB _multimesh_get_aabb(RID p_multimesh) const = 0;
+ virtual AABB _multimesh_get_aabb(RID p_multimesh) = 0;
// Multimesh is responsible for allocating / destroying a MultiMeshInterpolator object.
// This allows shared functionality for interpolation across backends.