Exemplo n.º 1
0
        protected override bool ClearInternal()
        {
#if FLUX_DEBUG
            Debug.LogWarning("Destroying Sequence Preview");
#endif

            FSequence sequence = Track.Owner.GetComponent <FSequence>();

            foreach (FContainer container in sequence.Containers)
            {
                foreach (FTimeline timeline in container.Timelines)
                {
                    foreach (FTrack track in timeline.Tracks)
                    {
                        if (track.CanTogglePreview)
                        {
                            track.CanPreview = false;
                        }
                    }
                }
            }

            foreach (FContainer container in sequence.Containers)
            {
                foreach (FTimeline timeline in container.Timelines)
                {
                    foreach (FTrack track in timeline.Tracks)
                    {
                        if (track.HasCache)
                        {
                            track.ClearCache();
                        }
                    }
                }
            }

            FAnimationTrack.DeleteAnimationPreviews(sequence);

            return(true);
        }
Exemplo n.º 2
0
        protected override bool ClearInternal()
        {
#if FLUX_DEBUG
            Debug.LogWarning("Destroying Sequence Preview");
#endif

            FSequence sequence = ((FSequenceTrack)Track).OwnerSequence;

            foreach (FContainer container in sequence.Containers)
            {
                foreach (FTrack track in container.Tracks)
                {
                    if (track.HasCache)
                    {
                        track.ClearCache();
                    }
                }
            }
            FAnimationTrack.DeleteAnimationPreviews(sequence);


            return(true);
        }