Пример #1
0
        /// <summary>
        /// Adds an animation key in the current animation, at the current timeline frame.
        /// </summary>
        public void RemoveKeyAtCurrentFrame(ulong nodeId, PropertyType property)
        {
            RequireMode(EditorMode.Animate);

            var node      = CurrentDocument.GetNode(nodeId);
            var animation = CurrentDocument.GetAnimation(_currentAnimationId);

            using var uow = CurrentDocument.StartUnitOfWork($"{node} Remove Key {property} @ [F:{animation.CurrentFrame}]");
            animation.RemoveKeyAtCurrentFrame(uow, nodeId, property);
        }