Skip to content

GridMap Mesh Library "Clear" doesn't actually clear the grid-map #37124

@Alastor01

Description

@Alastor01

Godot version: 3.0, 3.1, 3.2

OS/device including version: Windows 10 Pro 64-bit

Issue description:

  • GridMap inspector has a section for choosing Mesh Library
  • In this section, you can "Clear" currently assigned Mesh Library, which removes the Mesh Library and (apparently) deletes all tiles
  • But this is not true, because even if you restart Godot, and then attach the same Mesh Library, all your tiles will be there at the scene again
  • Clear implies complete removal of data, so this is not how it is meant to work. That is, by clicking "Clear", it should remove all history as well so you can effectively clean your map.

Steps to reproduce:

  1. Add a Spatial, add a GridMap as its child
  2. Assign your Mesh Library to the GridMap
  3. Dump a couple of tiles, save, now use "Clear", see your tiles disappearing, save
  4. Restart Godot, open your scene, re-add the Mesh Library and find your old tiles to be at the scene again

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions