diff --git a/editor/scene_tree_dock.cpp b/editor/scene_tree_dock.cpp index 9e231a41c3c..032f3875bf2 100644 --- a/editor/scene_tree_dock.cpp +++ b/editor/scene_tree_dock.cpp @@ -3604,6 +3604,11 @@ void SceneTreeDock::_gather_resources(Node *p_node, List, Nod continue; } + if (!res->is_built_in() || res->get_path().get_slice("::", 0) != edited_scene->get_scene_file_path()) { + // Ignore external and foreign resources. + continue; + } + const Pair, Node *> pair(res, p_node); r_resources.push_back(pair); }