diff options
| author | Andreas Haas | 2017-08-03 20:44:15 +0200 |
|---|---|---|
| committer | Andreas Haas | 2017-08-03 20:46:13 +0200 |
| commit | 95da12212beb6ab947de5ebbb0d12ffba3d2006c (patch) | |
| tree | 679cea4241d50496e4a9e970c002300e6dab198e /editor/plugins/tile_map_editor_plugin.cpp | |
| parent | 3ccf0968ffc1230c92474979a8974cc001c6086a (diff) | |
| download | godot-95da12212beb6ab947de5ebbb0d12ffba3d2006c.tar.gz godot-95da12212beb6ab947de5ebbb0d12ffba3d2006c.tar.zst godot-95da12212beb6ab947de5ebbb0d12ffba3d2006c.zip | |
Diffstat (limited to 'editor/plugins/tile_map_editor_plugin.cpp')
| -rw-r--r-- | editor/plugins/tile_map_editor_plugin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp index d12b97912..e7bc8a4da 100644 --- a/editor/plugins/tile_map_editor_plugin.cpp +++ b/editor/plugins/tile_map_editor_plugin.cpp @@ -330,6 +330,8 @@ PoolVector<Vector2> TileMapEditor::_bucket_fill(const Point2i &p_start, bool era if (id == TileMap::INVALID_CELL) return PoolVector<Vector2>(); + } else if (prev_id == TileMap::INVALID_CELL) { + return PoolVector<Vector2>(); } Rect2i r = node->get_item_rect(); |
