Profile editor - Implemented keyframe selection, movement, deletion

Profile editor - Added command scoping
This commit is contained in:
Robert committed 2022-01-22 01:19:10 +01:00
1 parent a1f7f6dff8
commit 913117ad0a
15 files changed
+515 -172

No files matched your search

@@ -213,7 +213,7 @@ namespace Artemis.Core
SetCurrentValue(CoreJson.DeserializeObject<T>(json)!, null);
}
private void ReapplyUpdate()
internal void ReapplyUpdate()
{
// Create a timeline with the same position but a delta of zero
Timeline temporaryTimeline = new();
@@ -291,6 +291,7 @@ namespace Artemis.Core
KeyframesEnabled = true;
SortKeyframes();
ReapplyUpdate();
OnKeyframeAdded();
}
@@ -323,7 +324,9 @@ namespace Artemis.Core
return;
_keyframes.Remove(keyframe);
SortKeyframes();
ReapplyUpdate();
OnKeyframeRemoved();
}
@@ -57,6 +57,7 @@ namespace Artemis.Core
{
SetAndNotify(ref _position, value);
LayerProperty.SortKeyframes();
LayerProperty.ReapplyUpdate();
}
}