1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-06 12:20:30 +00:00

Reset TileMapEditor painting on application refocus

Treats application unfocus as a mouse release for
TOOL_PAINTING, by finishing the undo state and
resetting the tool. Also sets a flag to prevent extra
lines from being drawn when the application is refocused.

fixes #42398, fixes #24970

(cherry picked from commit 70a4cd1afe)
This commit is contained in:
Michael Auderer
2020-10-02 01:48:14 -04:00
committed by Rémi Verschelde
parent b426e58acd
commit 9f4dc87739
2 changed files with 26 additions and 0 deletions

View File

@@ -119,6 +119,7 @@ class TileMapEditor : public VBoxContainer {
Rect2i rectangle;
Point2i over_tile;
bool refocus_over_tile;
bool *bucket_cache_visited;
Rect2i bucket_cache_rect;