1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2026-01-02 10:43:31 +00:00
Artemis/src/Artemis.UI/Models/KeyframeClipboardModel.cs
Robert dd40bdd544 Profiles - Added module activation requirements
Editor - Refactored tools and selected keyframes management
Timeline - Added keyframe duplicating, copying and pasting
Windows UI - Added logging of fatal exceptions
2022-06-05 18:57:42 +02:00

25 lines
615 B
C#

using Artemis.Core;
using Artemis.Storage.Entities.Profile;
using Newtonsoft.Json;
namespace Artemis.UI.Models;
public class KeyframeClipboardModel
{
public const string ClipboardDataFormat = "Artemis.Keyframes";
[JsonConstructor]
public KeyframeClipboardModel()
{
}
public KeyframeClipboardModel(ILayerPropertyKeyframe keyframe)
{
KeyframeEntity entity = keyframe.GetKeyframeEntity();
Path = keyframe.UntypedLayerProperty.Path;
Entity = entity;
}
public string Path { get; set; } = null!;
public KeyframeEntity Entity { get; set; } = null!;
}