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 GlobalSettings GetGlobalSettings() { return((GlobalSettings)SrcObjects.FirstOrDefault(x => x is GlobalSettings)); }
public AnimEvaluator GetAnimationEvaluator() { return((AnimEvaluator)SrcObjects.FirstOrDefault(x => x is AnimEvaluator)); }