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:
commit
9a0e250638
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue