public void Clear(bool executeGraphsWithError) { List <string> graphGuids = null; if (executeGraphsWithError) { graphGuids = m_events.Where(e => e.Kind == AssetProcessEvent.EventKind.Error).Select(e => e.GraphGuid).Distinct().ToList(); } m_events.Clear(); m_filteredEvents.Clear(); m_errorEventCount = 0; m_infoEventCount = 0; m_filteredInfoEventCount = 0; m_filteredErrorEventCount = 0; if (executeGraphsWithError) { var graphGuidWithoutHidden = graphGuids.Select(AssetDatabase.GUIDToAssetPath) .Where(string.IsNullOrEmpty) .Where(path => path.Contains(Model.Settings.HIDE_GRAPH_PREFIX)) .ToList(); AssetGraphUtility.ExecuteAllGraphs(graphGuidWithoutHidden, true); } }
public void Clear(bool executeGraphsWithError) { List <string> graphGuids = null; if (executeGraphsWithError) { graphGuids = m_events.Where(e => e.Kind == AssetProcessEvent.EventKind.Error).Select(e => e.GraphGuid).Distinct().ToList(); } m_events.Clear(); m_filteredEvents.Clear(); m_errorEventCount = 0; m_infoEventCount = 0; if (executeGraphsWithError) { AssetGraphUtility.ExecuteAllGraphs(graphGuids, true); } }