Skip to content

Commit 03d6e70

Browse files
committed
Bind EditorFileSystem::is_importing()
1 parent 68410ac commit 03d6e70

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

doc/classes/EditorFileSystem.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@
3636
Returns the scan progress for 0 to 1 if the FS is being scanned.
3737
</description>
3838
</method>
39+
<method name="is_importing" qualifiers="const">
40+
<return type="bool" />
41+
<description>
42+
Returns [code]true[/code] if resources are currently being imported.
43+
</description>
44+
</method>
3945
<method name="is_scanning" qualifiers="const">
4046
<return type="bool" />
4147
<description>

editor/file_system/editor_file_system.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3676,6 +3676,7 @@ bool EditorFileSystem::_scan_extensions() {
36763676
void EditorFileSystem::_bind_methods() {
36773677
ClassDB::bind_method(D_METHOD("get_filesystem"), &EditorFileSystem::get_filesystem);
36783678
ClassDB::bind_method(D_METHOD("is_scanning"), &EditorFileSystem::is_scanning);
3679+
ClassDB::bind_method(D_METHOD("is_importing"), &EditorFileSystem::is_importing);
36793680
ClassDB::bind_method(D_METHOD("get_scanning_progress"), &EditorFileSystem::get_scanning_progress);
36803681
ClassDB::bind_method(D_METHOD("scan"), &EditorFileSystem::scan);
36813682
ClassDB::bind_method(D_METHOD("scan_sources"), &EditorFileSystem::scan_changes);

0 commit comments

Comments
 (0)