You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Merge pull request #48070 from KoBeWi/greedmap
Fix GridMap still drawing when Alt+Tabbing
This commit is contained in:
@@ -1080,6 +1080,16 @@ void GridMapEditor::_notification(int p_what) {
|
|||||||
options->set_icon(get_theme_icon("GridMap", "EditorIcons"));
|
options->set_icon(get_theme_icon("GridMap", "EditorIcons"));
|
||||||
search_box->set_right_icon(get_theme_icon("Search", "EditorIcons"));
|
search_box->set_right_icon(get_theme_icon("Search", "EditorIcons"));
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case NOTIFICATION_APPLICATION_FOCUS_OUT: {
|
||||||
|
if (input_action == INPUT_PAINT) {
|
||||||
|
// Simulate mouse released event to stop drawing when editor focus exists.
|
||||||
|
Ref<InputEventMouseButton> release;
|
||||||
|
release.instance();
|
||||||
|
release->set_button_index(MOUSE_BUTTON_LEFT);
|
||||||
|
forward_spatial_input_event(nullptr, release);
|
||||||
|
}
|
||||||
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user