Profiles - Made data bindings compatible with timeline changes

This commit is contained in:
SpoinkyNL committed 2020-11-02 22:09:29 +01:00
1 parent 997ab005d8
commit 0f5c2b80c4
23 files changed
+175 -163

No files matched your search

@@ -42,10 +42,8 @@ namespace Artemis.Core
CurrentValue = BaseValue;
if (ProfileElement.ApplyKeyframesEnabled)
UpdateKeyframes(timeline);
if (ProfileElement.ApplyDataBindingsEnabled)
UpdateDataBindings(timeline);
UpdateKeyframes(timeline);
UpdateDataBindings(timeline);
OnUpdated();
}
@@ -421,6 +419,10 @@ namespace Artemis.Core
private void UpdateDataBindings(Timeline timeline)
{
// To avoid data bindings applying at non-regular updating (during editing) only update when not overriden
if (timeline.IsOverridden)
return;
foreach (IDataBinding dataBinding in _dataBindings)
{
dataBinding.Update(timeline);