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(); })); }
public void SetCurrentAnimationStack(AnimStack pAnimStack) { CurrentAnimationStack = pAnimStack; }
public virtual void Visit(AnimStack obj) { }
protected void AcceptAnimStack(AnimStack obj, ISet <object> visitedObjects) { AcceptCollection(obj, visitedObjects); Visit(obj); }