/// <summary> /// Sets up this control point /// </summary> public SplineControlPoint( Curve owner, int index ) { m_Owner = owner; m_Index = index; m_Frame = m_Owner.EvaluateFrame( index ); owner.OnChangedEvent += OnOwnerSplineChanged; }
/// <summary> /// Delegate, added to the Spline.OnChangedEvent. Re-evaluates the frame of the control point /// </summary> /// <param name="spline">Spline that changed</param> private void OnOwnerSplineChanged( Curve spline ) { m_Frame = spline.EvaluateFrame( m_Index ); }