Beispiel #1
0
 // We sync keyframe selection from curve editor to AnimationWindowState
 private void UpdateSelectedKeysFromCurveEditor()
 {
     m_State.ClearKeySelections();
     foreach (CurveSelection curveSelection in m_CurveEditor.selectedCurves)
     {
         AnimationWindowKeyframe keyFrame = AnimationWindowUtility.CurveSelectionToAnimationWindowKeyframe(curveSelection, m_State.allCurves);
         if (keyFrame != null)
         {
             m_State.SelectKey(keyFrame);
         }
     }
 }
Beispiel #2
0
 private void UpdateSelectedKeysFromCurveEditor()
 {
     this.m_State.ClearKeySelections();
     foreach (CurveSelection current in this.m_CurveEditor.selectedCurves)
     {
         AnimationWindowKeyframe animationWindowKeyframe = AnimationWindowUtility.CurveSelectionToAnimationWindowKeyframe(current, this.m_State.allCurves);
         if (animationWindowKeyframe != null)
         {
             this.m_State.SelectKey(animationWindowKeyframe);
         }
     }
 }
Beispiel #3
0
 private void UpdateSelectedKeysFromCurveEditor()
 {
     this.m_State.ClearKeySelections();
     using (List <CurveSelection> .Enumerator enumerator = this.m_CurveEditor.selectedCurves.GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             AnimationWindowKeyframe animationWindowKeyframe = AnimationWindowUtility.CurveSelectionToAnimationWindowKeyframe(enumerator.Current, this.m_State.allCurves);
             if (animationWindowKeyframe != null)
             {
                 this.m_State.SelectKey(animationWindowKeyframe);
             }
         }
     }
 }