summaryrefslogtreecommitdiff
path: root/scene/2d/tile_map.cpp
AgeCommit message (Collapse)Author
2023-01-27Rename texture_offset and unclamp itGilles Roudière
2023-01-23Convert en_GB spelling to en_US with codespellRémi Verschelde
2023-01-21Use range iterators in LocalVector loopskobewi
2023-01-21Merge pull request #65726 from KoBeWi/celllessRémi Verschelde
Don't print error in `get_cell_tile_data()`
2023-01-18Merge pull request #71630 from groud/fix_tilemap_layer_delete_undoRémi Verschelde
Fixes TileMap undo not restoring tiles
2023-01-18Fixes TileMap undo not restoring tilesGilles Roudière
2023-01-18Merge pull request #71615 from groud/bring_back_get_cells_by_idRémi Verschelde
Bring back TileMap::get_cells_by_id
2023-01-18Bring back TileMap::get_cells_by_idGilles Roudière
2023-01-18Avoid recreating TileMap internals when selecting itGilles Roudière
2023-01-05One Copyright Update to rule them allRémi Verschelde
As many open source projects have started doing it, we're removing the current year from the copyright notice, so that we don't need to bump it every year. It seems like only the first year of publication is technically relevant for copyright notices, and even that seems to be something that many companies stopped listing altogether (in a version controlled codebase, the commits are a much better source of date of publication than a hardcoded copyright statement). We also now list Godot Engine contributors first as we're collectively the current maintainers of the project, and we clarify that the "exclusive" copyright of the co-founders covers the timespan before opensourcing (their further contributions are included as part of Godot Engine contributors). Also fixed "cf." Frenchism - it's meant as "refer to / see".
2022-12-29Add safety-checks before some servers `free()`Adam Scott
2022-12-22Use TileSet navigation layer layers when TileMap generates navigation polygonsreejk
2022-12-19TileSet Simplify tile shape polygonskleonc
2022-12-17Fix Navigation API abbreviations inconsistencysmix8
Schema for navigation to name user facing API with "navigation" without abbreviation and e.g. NavigationServer internals with abbr "nav".
2022-12-17Merge pull request #70118 from clayjohn/tilemap-layersRémi Verschelde
Use large offset for tilemap layer level canvas items
2022-12-15Use large offset for tilemap layer level canvas itemsclayjohn
This matches the logic in _rendering_update_dirty_quadrants
2022-12-15Remove a confusing TileMap warningGilles Roudière
2022-12-12Merge pull request #69950 from kleonc/tile-map-const-refs-for-the-winRémi Verschelde
`TileMap` Pass some parameters by `const &` instead of by value
2022-12-12Merge pull request #69922 from adamscott/fix-tilemap-tileset-heap-use-after-freeRémi Verschelde
Fix `heap-use-after-free` error in `TileMap::~TileMap()`
2022-12-12Merge pull request #67050 from KoBeWi/syrtRémi Verschelde
Warn if isometric TileMap is not Y-sorted
2022-12-12TileMap Pass some parameters by `const &` instead of by valuekleonc
2022-12-12Fix `heap-use-after-free` error in `TileMap::~TileMap()`Adam Scott
Co-authored-by: Gilles Roudiere <gilles.roudiere@gmail.com>
2022-12-10Enable assigning an owner to navigation regions and linksJosh Jones
This allows users of the server APIs to get back the nodes that created certain regions and links.
2022-12-09Fix TileMap drawing itself twice on creationVladislav Slobodenyuk
Adds a check before calling `item_rect_changed()` in `_recompute_rect_cache()` of `scene/2d/tile_map.cpp`. Makes sure TileMap is only redrawn if the rect is actually changed. Fixes #69754
2022-12-07Rename get_surrounding_tiles to get_surrounding_cellsGilles Roudière
2022-11-07Don't free instanced scenes when recreating tileskobewi
2022-11-03Fix terrain painting in corner-only matching modeGilles Roudière
2022-10-31Merge pull request #67445 from Zylann/rename_queue_deleteRémi Verschelde
Rename queue_delete => queue_free
2022-10-31Merge pull request #67580 from KoBeWi/little_thingsRémi Verschelde
Minor code improvements
2022-10-30Merge pull request #67754 from kleonc/tilemap-fix-collision-shapes-debug-drawMax Hilbrunner
Fix `TileMap` collision shapes debug draw
2022-10-26Warn if isometric TileMap is not Y-sortedkobewi
2022-10-24Rename queue_delete => queue_freeMarc Gilleron
# Conflicts: # editor/plugins/tiles/tiles_editor_plugin.cpp
2022-10-23Merge pull request #67390 from groud/more_conservative_terrain_paintingClay John
Make terrain painting not change neighbors centers bits
2022-10-22Fix `TileMap` collision shapes debug drawkleonc
2022-10-20Make terrain painting not change neighbors centers bitsGilles Roudière
2022-10-19Fix texture filter and repeat in TileMapkobewi
2022-10-18Minor code improvementskobewi
2022-10-07Fix MSVC warnings, rename shadowed variables, fix uninitialized values, ↵bruvzg
change warnings=all to use /W4.
2022-10-06Fix TileMap occluders having a wrong transformGilles Roudière
2022-09-28refactor(TileMap): Return Rect2i in get_used_rectMisterMX
Signed-off-by: MisterMX <mbxd12@web.de>
2022-09-21Set scene tiles' position before adding themkobewi
2022-09-19Change return type of `get_configuration_warnings` to `PackedStringArray`Marc Gilleron
2022-09-13Don't print error in get_cell_tile_data()kobewi
2022-09-07Remove / Replace old Navigation Debug Visualizationsmix8
- removes / replaces leftovers from old navigation debug code - cleanes SceneTree and ProjectSettings from old navigation debug
2022-09-05Rename TileMap/GridMap.`world_to_map` and opposite to `local_to_map`Micky
For both TileMap and GridMap: - `world_to_map` -> `local_to_map` - `map_to_world` -> `map_to_local` Also changes any mention of "world" in this context to "local" to avoid future confusion. Finally, updates the docs of both methods for consistency. In particular, adding a note on how to convert the returned values from local to global coordinates and vice versa.
2022-08-26Easier setting properties of last TileMap layerkobewi
2022-08-22Use false as default for use_proxies argumentkobewi
2022-08-16Add a method to get TileData from a cellkobewi
2022-07-26Fixes TileMap clear_layer not recreating internal CanvasItemsGilles Roudière
2022-07-08Account for relative z-indexes when y-sortingXentripetal