Explorar el Código

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
Rémi Verschelde hace 2 años
padre
commit
9a0e250638
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      editor/scene_tree_dock.cpp

+ 5 - 0
editor/scene_tree_dock.cpp

@@ -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);
 	}