Пример #1
0
        public AnimCurveNode GetCurveNode(AnimStack pAnimStack, bool pCreate = false)
        {
            if (pAnimStack == null)
            {
                return(null);
            }

            var currentLayers = new HashSet <AnimLayer>(pAnimStack.GetSrcObjects <AnimLayer>());

            return((AnimCurveNode)SrcObjects.FirstOrDefault(x =>
            {
                if (!(x is AnimCurveNode))
                {
                    return false;
                }
                var acn = (AnimCurveNode)x;
                var layers = new HashSet <AnimLayer>(acn.GetDstObjects <AnimLayer>());
                return layers.Intersect(currentLayers).Any();
            }));
        }
Пример #2
0
 public GlobalSettings GetGlobalSettings()
 {
     return((GlobalSettings)SrcObjects.FirstOrDefault(x => x is GlobalSettings));
 }
Пример #3
0
 public AnimEvaluator GetAnimationEvaluator()
 {
     return((AnimEvaluator)SrcObjects.FirstOrDefault(x => x is AnimEvaluator));
 }