Ejemplo n.º 1
0
 private void UpdateSelectedKeysToCurveEditor()
 {
     this.m_CurveEditor.ClearSelection();
     foreach (AnimationWindowKeyframe current in this.m_State.selectedKeys)
     {
         CurveSelection curveSelection = AnimationWindowUtility.AnimationWindowKeyframeToCurveSelection(current, this.m_CurveEditor);
         if (curveSelection != null)
         {
             this.m_CurveEditor.AddSelection(curveSelection);
         }
     }
 }
Ejemplo n.º 2
0
 private void UpdateSelectedKeysToCurveEditor()
 {
     this.m_CurveEditor.ClearSelection();
     using (List <AnimationWindowKeyframe> .Enumerator enumerator = this.m_State.selectedKeys.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             CurveSelection curveSelection = AnimationWindowUtility.AnimationWindowKeyframeToCurveSelection(enumerator.Current, this.m_CurveEditor);
             if (curveSelection != null)
             {
                 this.m_CurveEditor.AddSelection(curveSelection);
             }
         }
     }
 }
Ejemplo n.º 3
0
        // We sync keyframe selection from AnimationWindowState to curve editor
        private void UpdateSelectedKeysToCurveEditor()
        {
            UpdateCurveEditorData();

            m_CurveEditor.ClearSelection();
            m_CurveEditor.BeginRangeSelection();
            foreach (AnimationWindowKeyframe keyframe in m_State.selectedKeys)
            {
                CurveSelection curveSelection = AnimationWindowUtility.AnimationWindowKeyframeToCurveSelection(keyframe, m_CurveEditor);
                if (curveSelection != null)
                {
                    m_CurveEditor.AddSelection(curveSelection);
                }
            }
            m_CurveEditor.EndRangeSelection();
        }