mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
TileMap: _update_dirty_quadrants() cancel pending update pre return
(cherry picked from commit 5b3acd287d)
This commit is contained in:
committed by
Rémi Verschelde
parent
ba50bb9cb1
commit
b5bdc60f58
@@ -268,10 +268,10 @@ void TileMap::_update_dirty_quadrants() {
|
||||
|
||||
if (!pending_update)
|
||||
return;
|
||||
if (!is_inside_tree())
|
||||
return;
|
||||
if (!tile_set.is_valid())
|
||||
if (!is_inside_tree() || !tile_set.is_valid()) {
|
||||
pending_update = false;
|
||||
return;
|
||||
}
|
||||
|
||||
VisualServer *vs = VisualServer::get_singleton();
|
||||
Physics2DServer *ps = Physics2DServer::get_singleton();
|
||||
|
||||
Reference in New Issue
Block a user