mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Profile editor - Refactored a lot of VMs so they clean up nicely
This commit is contained in:
1 parent
0dac4c7387
commit
4db66e1e3e
37 files changed
+531
-496
No files matched your search
@@ -288,13 +288,10 @@ namespace Artemis.Core
|
||||
if (LayerBrush?.BaseProperties?.PropertiesInitialized == false || LayerBrush?.BrushType != LayerBrushType.Regular)
|
||||
return;
|
||||
|
||||
lock (Timeline)
|
||||
{
|
||||
RenderTimeline(Timeline, canvas);
|
||||
foreach (Timeline extraTimeline in Timeline.ExtraTimelines)
|
||||
RenderTimeline(extraTimeline, canvas);
|
||||
Timeline.ClearDelta();
|
||||
}
|
||||
RenderTimeline(Timeline, canvas);
|
||||
foreach (Timeline extraTimeline in Timeline.ExtraTimelines.ToList())
|
||||
RenderTimeline(extraTimeline, canvas);
|
||||
Timeline.ClearDelta();
|
||||
}
|
||||
|
||||
private void ApplyTimeline(Timeline timeline)
|
||||
@@ -384,6 +381,7 @@ namespace Artemis.Core
|
||||
{
|
||||
// ignored
|
||||
}
|
||||
|
||||
Renderer.Close();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,12 @@ namespace Artemis.Core
|
||||
/// <summary>
|
||||
/// Gets the unique path of the property on the layer
|
||||
/// </summary>
|
||||
public string Path { get; }
|
||||
string Path { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the type of the property
|
||||
/// </summary>
|
||||
Type PropertyType { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Initializes the layer property
|
||||
|
||||
@@ -39,20 +39,15 @@ namespace Artemis.Core
|
||||
_keyframes = new List<LayerPropertyKeyframe<T>>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the type of the property
|
||||
/// </summary>
|
||||
public Type GetPropertyType()
|
||||
{
|
||||
return typeof(T);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
public PropertyDescriptionAttribute PropertyDescription { get; internal set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public string Path { get; private set; }
|
||||
|
||||
/// <inheritdoc />
|
||||
public Type PropertyType => typeof(T);
|
||||
|
||||
/// <inheritdoc />
|
||||
public void Update(Timeline timeline)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user