Skip to content

Snapping to objects on different map parts #2484

@dl3sdo

Description

@dl3sdo

Mapper currently shows a behavior which is in contradiction to how map parts are handled otherwise:
Snapping to the closest object (and also following a path) is not limited to the current map part.

Maybe this is the intended behavior as the code uses the function Map::findAllObjectsAt() which iterates over all objects on all map parts and which is not used somewhere else.
There is another function Map::findObjectsAt() which just iterates over all objects on the current map part, so fixing that behavior is straightforward.

What is the desired behavior?
Personally, I'm in favor of limiting snapping to the current map part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions