コード例 #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 void SetCurrentAnimationStack(AnimStack pAnimStack)
 {
     CurrentAnimationStack = pAnimStack;
 }
コード例 #3
0
 public virtual void Visit(AnimStack obj)
 {
 }
コード例 #4
0
 protected void AcceptAnimStack(AnimStack obj, ISet <object> visitedObjects)
 {
     AcceptCollection(obj, visitedObjects);
     Visit(obj);
 }