mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
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
@ -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 New Issue
Block a user