Merge pull request #7406 from neikeq/pr-issue-5076
TileMap: _update_dirty_quadrants() cancel pending update pre return
This commit is contained in:
commit
6428ebd91f
1 changed files with 3 additions and 3 deletions
|
@ -268,10 +268,10 @@ void TileMap::_update_dirty_quadrants() {
|
||||||
|
|
||||||
if (!pending_update)
|
if (!pending_update)
|
||||||
return;
|
return;
|
||||||
if (!is_inside_tree())
|
if (!is_inside_tree() || !tile_set.is_valid()) {
|
||||||
return;
|
pending_update = false;
|
||||||
if (!tile_set.is_valid())
|
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
VisualServer *vs = VisualServer::get_singleton();
|
VisualServer *vs = VisualServer::get_singleton();
|
||||||
Physics2DServer *ps = Physics2DServer::get_singleton();
|
Physics2DServer *ps = Physics2DServer::get_singleton();
|
||||||
|
|
Loading…
Reference in a new issue