TileMap: _update_dirty_quadrants() cancel pending update pre return

This commit is contained in:
Ignacio Etcheverry 2017-01-01 18:31:29 +01:00
parent c798ff1551
commit 5b3acd287d

View file

@ -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();