Profile editor - Continue updating datamodel in editor

Display conditions - Added setting to display current values while selecting condition targets
This commit is contained in:
SpoinkyNL committed 2020-08-06 22:09:28 +02:00
1 parent 35c46a4825
commit f3cbd819f5
26 files changed
+382 -93

No files matched your search

+5 -3
View File
@@ -223,12 +223,14 @@ namespace Artemis.Core.Models.Profile
// Ensure the layer must still be displayed
UpdateDisplayCondition();
// TODO: No point updating further than this if the layer is not going to be rendered
// Update the layer timeline, this will give us a new delta time which could be negative in case the main segment wrapped back
// to it's start
UpdateTimeline(deltaTime);
// No point updating further than this if the layer is not going to be rendered
if (TimelinePosition > TimelineLength)
return;
General.Update();
Transform.Update();
LayerBrush.BaseProperties?.Update();
@@ -285,7 +287,7 @@ namespace Artemis.Core.Models.Profile
/// <inheritdoc />
public override void Render(double deltaTime, SKCanvas canvas, SKImageInfo canvasInfo)
{
if (!Enabled)
if (!Enabled || TimelinePosition > TimelineLength)
return;
// Ensure the layer is ready