Skip to content

Gridmap Moving/Duplicating tool: Undo does not cancel the operation correctly #101430

Description

@Nodragem

Tested versions

Godot 4.4dev7

System information

Godot v4.4.dev7 - Windows 11 (build 22631) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce RTX 2060 (NVIDIA; 32.0.15.5613) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 threads)

Issue description

When we press CTRL+Z (Undo) while in the middle of a moving/duplicating operation, the block being moved/duplicated does not get deleted. It is as if the operation is not being cancelled.

Below I cut/move a piece then press Undo (see CTRL+Z in video below), you can see the piece reappearing at its original place, but the piece at the cursor position is still there.

Undo-bug.mp4

Steps to reproduce

  1. Create a Gridmap and add a few tiles
  2. Select a group of tiles
  3. Press C or X, move around
  4. Press CTRL+Z
  5. Observe the results

Minimal reproduction project (MRP)

I will create one later.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions