From 360449a0943970274311ceebd71dcb85637f110f Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 20 Dec 2017 11:09:56 -0300 Subject: Fix gridmap disappearing after editing after bake, closes #14868 --- modules/gridmap/grid_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 >(); -- cgit v1.2.3