mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Profiles - Made data bindings compatible with timeline changes
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user