You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Fix possible infinite loop with bucket fill tool
(cherry picked from commit 3571087843)
This commit is contained in:
committed by
Rémi Verschelde
parent
1738f5a600
commit
be4b63a257
@@ -341,6 +341,10 @@ DVector<Vector2> TileMapEditor::_bucket_fill(const Point2i &p_start, bool erase,
|
|||||||
return DVector<Vector2>();
|
return DVector<Vector2>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (id == prev_id) {
|
||||||
|
return PoolVector<Vector2>();
|
||||||
|
}
|
||||||
|
|
||||||
Rect2i r = node->get_item_rect();
|
Rect2i r = node->get_item_rect();
|
||||||
r.pos = r.pos / node->get_cell_size();
|
r.pos = r.pos / node->get_cell_size();
|
||||||
r.size = r.size / node->get_cell_size();
|
r.size = r.size / node->get_cell_size();
|
||||||
|
|||||||
Reference in New Issue
Block a user