You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-17 14:11:06 +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
This commit is contained in:
@@ -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