Skip to content

Updating map position in world via javascript extension cannot be undone. #4217

@agoaj

Description

@agoaj

Describe the bug

Updating a map's location in a world via an extension doesn't update the undo stack, so it cannot be undone.

Steps to reproduce

Load a world file with at least one map.
Call world.setMapPos or setMapRect from an extension to move any map in the world.
try to undo the change, the map won't move back to it's previous location.

Expected behavior

Hitting undo should return the map to it's previous position.

OS version

Windows 11

Tiled version

1.11.2

Metadata

Metadata

Assignees

Labels

bugBroken behavior.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions