From 115dac21bceee17e827be4647ad3025ecc616bc8 Mon Sep 17 00:00:00 2001 From: Foxar Date: Mon, 21 Dec 2020 20:15:18 +0100 Subject: [PATCH] Changed: Return types in mesh_frame and mesh_materials for getBoundingBoxVertex() to const. --- src/engine/include/models/mesh_frame.hpp | 2 +- src/engine/include/models/mesh_material.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/include/models/mesh_frame.hpp b/src/engine/include/models/mesh_frame.hpp index 6c33e89..9b57699 100644 --- a/src/engine/include/models/mesh_frame.hpp +++ b/src/engine/include/models/mesh_frame.hpp @@ -86,7 +86,7 @@ public: * Returns bounding box (AABB) vertex. * Total length: 8 */ - Vector3 &getBoundingBoxVertex(const u8 &i) { return boundingBoxObj->getVertex(i); }; + const Vector3 &getBoundingBoxVertex(const u8 &i) { return boundingBoxObj->getVertex(i); }; /** * Returns bounding box (AABB) object pointer. diff --git a/src/engine/include/models/mesh_material.hpp b/src/engine/include/models/mesh_material.hpp index 5099901..47cf64b 100644 --- a/src/engine/include/models/mesh_material.hpp +++ b/src/engine/include/models/mesh_material.hpp @@ -72,7 +72,7 @@ public: * Returns bounding box (AABB) vertex. * Total length: 8 */ - Vector3 &getBoundingBoxVertex(const u8 &i) { return boundingBoxObj->getVertex(i); }; + const Vector3 &getBoundingBoxVertex(const u8 &i) { return boundingBoxObj->getVertex(i); }; /** * Returns bounding box (AABB) object pointer.