summaryrefslogtreecommitdiff
path: root/scene/2d/tile_map.cpp
AgeCommit message (Collapse)Author
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-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
2022-06-21Allow using CanvasItemMaterial in the TileSet editorHugo Locurcio
Previously, only ShaderMaterial overrides could be added.
2022-06-13Fixes terrains for isometric tilemapsGilles Roudière
2022-06-13Merge pull request #61809 from groud/terrain_center_bitRémi Verschelde
2022-06-11Add suffixes to all nodes and resourcesFireForge
2022-06-10Add terrain center bitGilles Roudière
2022-05-19Use range iterators for RBSet in most casesAaron Record
2022-05-16Replace most uses of Map by HashMapreduz
* Map is unnecessary and inefficient in almost every case. * Replaced by the new HashMap. * Renamed Map to RBMap and Set to RBSet for cases that still make sense (order matters) but use is discouraged. There were very few cases where replacing by HashMap was undesired because keeping the key order was intended. I tried to keep those (as RBMap) as much as possible, but might have missed some. Review appreciated!
2022-04-27Merge pull request #59979 from bruvzg/cpp_check2Rémi Verschelde
2022-04-27Fix TileMap::set_pattern offsetsSamuel Wilson
Currently it is trying to use the target coordinates (i.e., in the destination TileMap) to pull from the pattern, rather than the pattern-local coordinates.
2022-04-20Fix more issues found by cppcheck.bruvzg
2022-03-28String: Remove TTR and DTR defines in non-tools buildRémi Verschelde
This ensures we don't use TTR in runtime code, as it's specifically meant to source translations for the editor.
2022-03-02Changed TileMap::set_cell alternative_tile default value to 0Igor Kordiukiewicz
2022-02-15Use `switch` consistently in `_notification` (`scene` folder)Rémi Verschelde
2022-02-12Improve compilation speed (forward declarations/includes cleanup)Hendrik Brucker
2022-01-28TileSetAtlasSource: Make `get_tile_data` return `TileData *`Rémi Verschelde
This is now possible thanks to `Variant` changes. Also unbind some `_` prefixed methods which don't need to be exposed.
2022-01-24Better clarify map_to_world() descriptionkobewi
2022-01-19Fix error on scene tiles cleanupkobewi