VixenModules.App.Curves.Curve.CheckLibraryReference C# (CSharp) Method

CheckLibraryReference() public method

Checks that the library reference is still valid and current.
public CheckLibraryReference ( ) : bool
return bool
        public bool CheckLibraryReference()
        {
            // If we have a reference to a curve in the library, try and use that to check if the points are still valid.
            if (LibraryReferencedCurve != null) {
                if (!LibraryReferencedCurve.IsCurrentLibraryCurve) {
                    return !UpdateLibraryReference();
                }
            }
            else {
                return !UpdateLibraryReference();
            }

            return true;
        }