You've already forked godot
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:
committed by
Rémi Verschelde
parent
b426e58acd
commit
9f4dc87739
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user