summaryrefslogtreecommitdiffstats
path: root/scene/2d/tile_map.cpp
diff options
context:
space:
mode:
authorandriyDev <andriydzikh@gmail.com>2020-09-23 15:49:50 -0400
committerandriyDev <andriydzikh@gmail.com>2021-06-05 00:55:25 -0700
commit9f4bf5ec8058340541ee6e35bc15015fe576a3e6 (patch)
tree8578567c279e9e31800c82ac8667e1e18e2b6a02 /scene/2d/tile_map.cpp
parent8363ee6f8d398529d2db0e481fea82ccc9dcda31 (diff)
downloadredot-engine-9f4bf5ec8058340541ee6e35bc15015fe576a3e6.tar.gz
Deleted YSort, moved its functionality directly into Node2D.
YSort now has a compatibility alias to Node2D. Updated TileMap to use the existing Node2D y_sort_enabled property instead of its own property. Updated Node2D doc to include the new y_sort_enabled member. Updated TileMap doc to remove its mention of cell_y_sort. Deleted YSort doc.
Diffstat (limited to 'scene/2d/tile_map.cpp')
-rw-r--r--scene/2d/tile_map.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp
index 24b907fe6c..e79dfb019c 100644
--- a/scene/2d/tile_map.cpp
+++ b/scene/2d/tile_map.cpp
@@ -334,6 +334,12 @@ TileMap::VisibilityMode TileMap::get_navigation_visibility_mode() {
return show_navigation;
}
+void TileMap::set_y_sort_enabled(bool p_enable) {
+ Node2D::set_y_sort_enabled(p_enable);
+ _recreate_quadrants();
+ emit_signal("changed");
+}
+
void TileMap::update_dirty_quadrants() {
if (!pending_update) {
return;