From 03d6e70dba91cac7cda2eb548faa0781aeb97b79 Mon Sep 17 00:00:00 2001
From: nikitalita <69168929+nikitalita@users.noreply.github.com>
Date: Mon, 17 Nov 2025 10:33:13 -0800
Subject: [PATCH] Bind `EditorFileSystem::is_importing()`
---
doc/classes/EditorFileSystem.xml | 6 ++++++
editor/file_system/editor_file_system.cpp | 1 +
2 files changed, 7 insertions(+)
diff --git a/doc/classes/EditorFileSystem.xml b/doc/classes/EditorFileSystem.xml
index 06fa4be2c8..8a41b04397 100644
--- a/doc/classes/EditorFileSystem.xml
+++ b/doc/classes/EditorFileSystem.xml
@@ -36,6 +36,12 @@
Returns the scan progress for 0 to 1 if the FS is being scanned.
+
+
+
+ Returns [code]true[/code] if resources are currently being imported.
+
+
diff --git a/editor/file_system/editor_file_system.cpp b/editor/file_system/editor_file_system.cpp
index 8a5f876fd4..71d2daae2e 100644
--- a/editor/file_system/editor_file_system.cpp
+++ b/editor/file_system/editor_file_system.cpp
@@ -3676,6 +3676,7 @@ bool EditorFileSystem::_scan_extensions() {
void EditorFileSystem::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_filesystem"), &EditorFileSystem::get_filesystem);
ClassDB::bind_method(D_METHOD("is_scanning"), &EditorFileSystem::is_scanning);
+ ClassDB::bind_method(D_METHOD("is_importing"), &EditorFileSystem::is_importing);
ClassDB::bind_method(D_METHOD("get_scanning_progress"), &EditorFileSystem::get_scanning_progress);
ClassDB::bind_method(D_METHOD("scan"), &EditorFileSystem::scan);
ClassDB::bind_method(D_METHOD("scan_sources"), &EditorFileSystem::scan_changes);