Skip to content

Resize operation causes many undo steps when it affects position #4332

@bjorn

Description

@bjorn

Describe the bug

This is a regression. I'm not yet sure since which Tiled version, but it affects 1.11.2 and master.

When resizing an object in a direction that affects its position, the undo commands are not merged, resulting in many undo steps to undo the resizing operation.

Steps to reproduce

Resize an object from a handle that also will change the position of the object.

Expected behavior

I expect to be able to undo the resize in one step.

OS version

Linux

Tiled version

1.11.2 and master.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions