You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix bucket fill behaviour when selecting multiple tiles
This commit is contained in:
@@ -533,11 +533,10 @@ PoolVector<Vector2> TileMapEditor::_bucket_fill(const Point2i &p_start, bool era
|
||||
return PoolVector<Vector2>();
|
||||
}
|
||||
|
||||
for (int i = ids.size() - 1; i >= 0; i--) {
|
||||
if (ids[i] == prev_id) {
|
||||
if (ids.size() == 1 && ids[0] == prev_id) {
|
||||
// Same ID, nothing to change
|
||||
return PoolVector<Vector2>();
|
||||
}
|
||||
}
|
||||
|
||||
Rect2i r = node->get_used_rect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user