浏览代码

Implement dependency tracking for sub graphs

/main
Peter Bay Bastian 7 年前
当前提交
7f024953
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12
      com.unity.shadergraph/Editor/Data/Nodes/Utility/SubGraphNode.cs

12
com.unity.shadergraph/Editor/Data/Nodes/Utility/SubGraphNode.cs


return referencedGraph.activeNodes.OfType<IMayRequireVertexColor>().Any(x => x.RequiresVertexColor(stageCapability));
}
public override void GetSourceAssetDependencies(List<string> paths)
{
base.GetSourceAssetDependencies(paths);
if (subGraphAsset != null)
{
var assetPath = AssetDatabase.GetAssetPath(subGraphAsset);
paths.Add(assetPath);
foreach (var dependencyPath in AssetDatabase.GetDependencies(assetPath))
paths.Add(dependencyPath);
}
}
}
}
正在加载...
取消
保存