You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add templated version of ObjectDB::get_instance()
This commit is contained in:
@@ -3098,7 +3098,7 @@ void EditorFileSystem::_queue_refresh_filesystem() {
|
||||
|
||||
void EditorFileSystem::_refresh_filesystem() {
|
||||
for (const ObjectID &id : folders_to_sort) {
|
||||
EditorFileSystemDirectory *dir = Object::cast_to<EditorFileSystemDirectory>(ObjectDB::get_instance(id));
|
||||
EditorFileSystemDirectory *dir = ObjectDB::get_instance<EditorFileSystemDirectory>(id);
|
||||
if (dir) {
|
||||
dir->subdirs.sort_custom<DirectoryComparator>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user