/// <summary> /// Callback on notification of the alignment manager's database to check /// if this preset has been persisted, and restore it to operation if it has. /// </summary> protected virtual void RestoreOnLoad() { CheckDependencies(); AnchorId = AlignmentManager.RestoreAlignmentAnchor(AnchorName, ModelingPoseGlobal); if (PinActive) { Pose restorePose; bool found = AlignmentManager.GetAlignmentPose(AnchorId, out restorePose); Debug.Assert(found); lockedPose = restorePose; } CheckAttachment(); }
/// <summary> /// Callback on notification of the alignment manager's database to check /// if this preset has been persisted, and restore it to operation if it has. /// </summary> protected virtual void RestoreOnLoad() { CheckDependencies(); AnchorId = AlignmentManager.RestoreAlignmentAnchor(AnchorName, ModelingPoseGlobal); if (PinActive) { Pose restorePose; bool found = AlignmentManager.GetAlignmentPose(AnchorId, out restorePose); Debug.Assert(found); lockedPose = restorePose; } //Debug.Log($"PinActive={PinActive}: id={AnchorId}, n={AnchorName}, mpg={ModelingPoseGlobal}, lp={lockedPose}"); CheckAttachment(); }