Merge pull request #35156 from MadEqua/fix-grid-map

Fix GridMap getter of baked meshes.
This commit is contained in:
Rémi Verschelde 2020-01-15 17:55:52 +01:00 committed by GitHub
commit 5f99e3396f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;