Merge pull request #77184 from KoBeWi/all_scene_sub-resources,_not_other_scene's,_not_external,_only_this_scene's

Filter extraneous resources from sub-resource list
This commit is contained in:
Rémi Verschelde 2023-05-19 10:11:02 +02:00
commit 9a0e250638
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -3604,6 +3604,11 @@ void SceneTreeDock::_gather_resources(Node *p_node, List<Pair<Ref<Resource>, 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<Ref<Resource>, Node *> pair(res, p_node);
r_resources.push_back(pair);
}