public void RefreshCurves() { if (m_CurveDataSource == null || m_Selection == null) { return; } var bindings = new HashSet <EditorCurveBinding>(AnimationPreviewUtilities.EditorCurveBindingComparer.Instance); foreach (int s in m_Selection) { var item = (CurveTreeViewNode)m_TreeView.FindItem(s); if (item != null && item.bindings != null) { bindings.UnionWith(item.bindings); } } var wrappers = m_CurveDataSource.GenerateWrappers(bindings); m_CurveEditor.animationCurves = wrappers.ToArray(); }
public void RefreshCurves() { if (m_CurveDataSource == null || m_Selection == null) { return; } var bindings = new List <EditorCurveBinding>(); foreach (int s in m_Selection) { var item = (CurveTreeViewNode)m_TreeView.FindItem(s); if (item != null && item.bindings != null) { bindings.AddRange(item.bindings); } } var wrappers = m_CurveDataSource.GenerateWrappers(bindings); m_CurveEditor.animationCurves = wrappers.ToArray(); }