mapeditor / mapeditor/tiled

Automapping - Backtracking after placing Object

Open
#3,471 8 comments 0 reactions 1 assignee View on GitHub

@abhinavs1920 is already working on this.

Since Mar 9, 2026.

missing feature
Dominant language
C++
Stars
12.9k
Forks
2k
Avg merge
4h 27m
Merged PRs (30d)
8

Description

**Describe the bug**
As the title suggests, the issue is in referencing to using Objects in an an automapping rule TMX. For tiles, whenever an error is made, I can easily press "Ctrl+Z" to undo any combination. This is done seamlessly, and automatically reverts back to the state it was before any additional tiles had been painted AND any rules were applied.

This doesn't happen with objects.

When an object is part of automapping output, when you try to undo a paint, it doesn't immediately go back to the appropriate state. Instead, it may take 2-3 uses of undo, similar to how the original automapping (before 1.9) would work.

Small bug, but something worth noting nonetheless.

**To Reproduce**
Steps to reproduce the behavior:
1. Create an automapping with an input/output rule for tiles.
2. On top of the output for a tile, add an additional output for a specific object.
3. Implement the rule on an actual map.
4. Press the Undo command.
5. See the error.

**Expected behavior**
Press Ctrl+Z should undo any painting done by the rule set.

**Media**

Image 1:

Image

Rule applied:

Image

Attempt to Undo:

Image

**Specifications:**
- OS: Windows 11
- Tiled Version: 1.91

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.