mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Profile editor - Fixed keyframe positions of groups not updating
This commit is contained in:
1 parent
13d2ee0c3b
commit
ecbc3e4f35
2 files changed
+3
-1
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Artemis.Storage.Entities.Profile;
|
||||
|
||||
namespace Artemis.Core
|
||||
@@ -6,7 +7,7 @@ namespace Artemis.Core
|
||||
/// <summary>
|
||||
/// Represents a keyframe on a <see cref="ILayerProperty" /> containing a value and a timestamp
|
||||
/// </summary>
|
||||
public interface ILayerPropertyKeyframe
|
||||
public interface ILayerPropertyKeyframe : INotifyPropertyChanged
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets an untyped reference to the layer property of this keyframe
|
||||
|
||||
+1
@@ -27,6 +27,7 @@ public class TimelineGroupViewModel : ActivatableViewModelBase
|
||||
PropertyGroupViewModel.Keyframes
|
||||
.ToObservableChangeSet()
|
||||
.AutoRefreshOnObservable(_ => profileEditorService.PixelsPerSecond)
|
||||
.AutoRefreshOnObservable(k => k.WhenAnyValue(kv => kv.Position))
|
||||
.Transform(k => k.Position.TotalSeconds * _pixelsPerSecond, true)
|
||||
.Bind(out ReadOnlyObservableCollection<double> keyframePositions)
|
||||
.Subscribe()
|
||||
|
||||
Reference in new issue
Block a user