Example #1
0
        void _BtnSmoothPath_Click(object sender, System.EventArgs e)
        {
            Undo.RecordObject(_Path, "smooth path");

            _Path.Keys = CRSpline3D.SmoothCurve(_Path.Keys, _Path.Interpolations);
            RebuildPath();
            EditorUtility.SetDirty(_Path);
        }