summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Lourenço <madequa@users.noreply.github.com>2020-01-15 14:30:17 +0000
committerBruno Lourenço <madequa@users.noreply.github.com>2020-01-15 14:30:17 +0000
commitda9eede933c12a9525237509963ec42c3a6c97d5 (patch)
treec4b3abc138702e04a793c7aff560e8a3cb6e4b0e
parent7c624949b5c17d6a4f503b4e299c8c717280cd23 (diff)
Fix GridMap getter of baked meshes.
-rw-r--r--modules/gridmap/grid_map.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp
index 8126c9338f..3d40220869 100644
--- a/modules/gridmap/grid_map.cpp
+++ b/modules/gridmap/grid_map.cpp
@@ -122,7 +122,7 @@ bool GridMap::_get(const StringName &p_name, Variant &r_ret) const {
Array ret;
ret.resize(baked_meshes.size());
for (int i = 0; i < baked_meshes.size(); i++) {
- ret.push_back(baked_meshes[i].mesh);
+ ret[i] = baked_meshes[i].mesh;
}
r_ret = ret;