forked from ChicoTeam/tiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Center tile objects at the mouse on insertion
This fixes mapeditor#67 without changing the TMX map format. This means the bottom-left remains the origin of the tile objects even though plain rectangle objects have their origin in the top-left. This difference was the reason for the wrong positioning of tile objects when inserting them, which is now fixed by taking the difference into account in the Insert Tile Objects tool. The tool now centers the inserted tile object at the mouse position. The reason tile objects have their origin in the bottom-left is because tiles in tile layers are also bottom-left aligned within their grid cell. This in turn has its origins in top-down maps where this behavior is usually desirable when working with tile images that are larger than the grid size.
- Loading branch information
Showing
3 changed files
with
32 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters