void OnEnable() { spline = target as BezierSplineAdvanced; spline.Refresh(); Undo.undoRedoPerformed -= OnUndoRedo; Undo.undoRedoPerformed += OnUndoRedo; }
private void OnUndoRedo() { if (spline != null && !spline.Equals(null)) { spline.Refresh(); } Repaint(); }
private void OnUndoRedo() { controlPointRotationsInitialized = false; if (spline != null && !spline.Equals(null)) { spline.Refresh(); } Repaint(); }
void OnEnable() { point = target as BezierPoint; spline = point.GetComponentInParent <BezierSplineAdvanced>(); if (spline != null && !spline.Equals(null)) { spline.Refresh(); } Undo.undoRedoPerformed -= OnUndoRedo; Undo.undoRedoPerformed += OnUndoRedo; }