Пример #1
0
            VMD.FaceKeyFrame GetKeyFrameWithoutCash(int frameNumber)
            {
                CurrentMorphKeyFrame = FaceKeyFrames.FindLast(x => x.FrameNumber == frameNumber);
                LastMorphKeyFrame    = FaceKeyFrames.FindLast(x => x.FrameNumber < frameNumber);
                NextMorphKeyFrame    = FaceKeyFrames.Find(x => x.FrameNumber > frameNumber);

                return(CurrentMorphKeyFrame);
            }
Пример #2
0
            VMD.FaceKeyFrame GetKeyFrameUsingCash(int frameNumber)
            {
                if (NextMorphKeyFrame == null)
                {
                    return(null);
                }

                if (frameNumber == NextMorphKeyFrame.FrameNumber)
                {
                    LastMorphKeyFrame    = NextMorphKeyFrame;
                    CurrentMorphKeyFrame = NextMorphKeyFrame;
                    NextMorphKeyFrame    = FaceKeyFrames.Find(x => x.FrameNumber > frameNumber);
                    return(CurrentMorphKeyFrame);
                }

                CurrentMorphKeyFrame = null;
                return(CurrentMorphKeyFrame);
            }