Ejemplo n.º 1
0
 internal AnimBlend(TargetPath path)
 {
     Path         = path;
     CurrentValue = null;
     TotalWeight  = 0;
     FinalUpdate  = false;
 }
Ejemplo n.º 2
0
        private bool GetPatchAtPath(TargetPath path, out IPatchable patch)
        {
            var targetId = TargetMap[path.Placeholder];

            if (path.AnimatibleType == "actor")
            {
                // pull current value
                var        actor      = (Actor)manager.App.FindActor(targetId);
                ActorPatch actorPatch = (ActorPatch)manager.AnimInputPatches.GetOrCreate(targetId, () => new ActorPatch(targetId));
                if (actor?.GeneratePatch(actorPatch, path) != null)
                {
                    patch = actorPatch;
                    return(true);
                }
            }

            patch = null;
            return(false);
        }