Browse Source

Update import dock when select resource in resource panel

jsjtxietian 1 year ago
parent
commit
e22a444235
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/filesystem_dock.cpp

+ 2 - 0
editor/filesystem_dock.cpp

@@ -758,6 +758,8 @@ void FileSystemDock::navigate_to_path(const String &p_path) {
 
 
 	// Ensure that the FileSystem dock is visible.
 	// Ensure that the FileSystem dock is visible.
 	EditorDockManager::get_singleton()->focus_dock(this);
 	EditorDockManager::get_singleton()->focus_dock(this);
+	import_dock_needs_update = true;
+	_update_import_dock();
 }
 }
 
 
 void FileSystemDock::_file_list_thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata) {
 void FileSystemDock::_file_list_thumbnail_done(const String &p_path, const Ref<Texture2D> &p_preview, const Ref<Texture2D> &p_small_preview, const Variant &p_udata) {