diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-01-02 15:11:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-02 15:11:23 +0100 |
commit | 6428ebd91faa757aff419e3f6d1ccc63b699dd11 (patch) | |
tree | 4c92ee73deea0c0f4f0f15dabf0ec959fca0547c | |
parent | 3fc4ee624313bd319094c46c30f9446a50f20ad8 (diff) | |
parent | 5b3acd287dcc08e6a05f7526f3bd28c5a00d8075 (diff) |
Merge pull request #7406 from neikeq/pr-issue-5076
TileMap: _update_dirty_quadrants() cancel pending update pre return
-rw-r--r-- | scene/2d/tile_map.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/2d/tile_map.cpp b/scene/2d/tile_map.cpp index fd3d409f29..ed16212f3e 100644 --- a/scene/2d/tile_map.cpp +++ b/scene/2d/tile_map.cpp @@ -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(); |