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;
}