diff options
author | Juan Linietsky <reduzio@gmail.com> | 2017-12-20 11:09:56 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2017-12-20 11:10:27 -0300 |
commit | 360449a0943970274311ceebd71dcb85637f110f (patch) | |
tree | 412cbe1308643de78d83a33d2feacc26733269f9 | |
parent | 0ead6b3cf5ac9d1b10ef107383d0c6e2b15ad863 (diff) |
Fix gridmap disappearing after editing after bake, closes #14868
-rw-r--r-- | modules/gridmap/grid_map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gridmap/grid_map.cpp b/modules/gridmap/grid_map.cpp index 060d9848ba..0b73cbfc6d 100644 --- a/modules/gridmap/grid_map.cpp +++ b/modules/gridmap/grid_map.cpp @@ -475,7 +475,7 @@ bool GridMap::_octant_update(const OctantKey &p_key) { xform.basis.set_orthogonal_index(c.rot); xform.set_origin(cellpos * cell_size + ofs); xform.basis.scale(Vector3(cell_scale, cell_scale, cell_scale)); - if (baked_meshes.size()) { + if (baked_meshes.size() == 0) { if (theme->get_item_mesh(c.item).is_valid()) { if (!multimesh_items.has(c.item)) { multimesh_items[c.item] = List<Pair<Transform, IndexKey> >(); |