mirror of
https://github.com/Siccity/xNode.git
synced 2026-03-26 22:49:02 +08:00
!B Group 空问题
This commit is contained in:
parent
2017fc8430
commit
25514fce96
@ -48,7 +48,11 @@ namespace XNodeEditor {
|
||||
for (int i = 0; i < guids.Length; i++) {
|
||||
string assetpath = AssetDatabase.GUIDToAssetPath (guids[i]);
|
||||
XNode.NodeGraph graph = AssetDatabase.LoadAssetAtPath (assetpath, typeof (XNode.NodeGraph)) as XNode.NodeGraph;
|
||||
graph.nodes.RemoveAll(x => x == null); //Remove null items
|
||||
if (!graph)
|
||||
{
|
||||
return;
|
||||
}
|
||||
graph.nodes.RemoveAll(x => !x); //Remove null items
|
||||
Object[] objs = AssetDatabase.LoadAllAssetRepresentationsAtPath (assetpath);
|
||||
// Ensure that all sub node assets are present in the graph node list
|
||||
for (int u = 0; u < objs.Length; u++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user