diff options
| author | Juan Linietsky <reduzio@gmail.com> | 2019-08-18 19:40:52 -0300 |
|---|---|---|
| committer | Juan Linietsky <reduzio@gmail.com> | 2020-02-11 11:59:25 +0100 |
| commit | 449df8f688080c02bfbbfafc45421875b77deb1b (patch) | |
| tree | ac9818b892c5d85fdcf4e4e89e383bc4dc46b7f8 /modules/gridmap | |
| parent | 7fa978517077333fba215e17181e1600d485fa43 (diff) | |
| download | redot-engine-449df8f688080c02bfbbfafc45421875b77deb1b.tar.gz | |
Base 3D engine done, still untested, though.
Diffstat (limited to 'modules/gridmap')
| -rw-r--r-- | modules/gridmap/grid_map_editor_plugin.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/gridmap/grid_map_editor_plugin.cpp b/modules/gridmap/grid_map_editor_plugin.cpp index e1e0044cea..7b846569dc 100644 --- a/modules/gridmap/grid_map_editor_plugin.cpp +++ b/modules/gridmap/grid_map_editor_plugin.cpp @@ -1022,8 +1022,7 @@ void GridMapEditor::_draw_grids(const Vector3 &cell_size) { Vector3 edited_floor = node->has_meta("_editor_floor_") ? node->get_meta("_editor_floor_") : Variant(); for (int i = 0; i < 3; i++) { - if (VS::get_singleton()->mesh_get_surface_count(grid[i]) > 0) - VS::get_singleton()->mesh_remove_surface(grid[i], 0); + VS::get_singleton()->mesh_clear(grid[i]); edit_floor[i] = edited_floor[i]; } |
