1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Expose is_part_of_edited_scene()

This commit is contained in:
kobewi
2023-11-29 16:54:34 +01:00
parent 86bf8354a0
commit 0b877a9962
11 changed files with 25 additions and 29 deletions

View File

@@ -53,7 +53,7 @@ void FileDialog::_focus_file_text() {
int lp = file->get_text().rfind(".");
if (lp != -1) {
file->select(0, lp);
if (file->is_inside_tree() && !get_tree()->is_node_being_edited(file)) {
if (file->is_inside_tree() && !is_part_of_edited_scene()) {
file->grab_focus();
}
}