mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Nodes - Save data binding node scripts
This commit is contained in:
1 parent
3874078f16
commit
bd3bf20d92
6 files changed
+27
-26
No files matched your search
@@ -211,6 +211,8 @@ namespace Artemis.Core
|
||||
{
|
||||
if (_disposed)
|
||||
throw new ObjectDisposedException("DataBinding");
|
||||
|
||||
IsEnabled = Entity.IsEnabled;
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
@@ -229,6 +231,7 @@ namespace Artemis.Core
|
||||
throw new ObjectDisposedException("DataBinding");
|
||||
|
||||
Script.Save();
|
||||
Entity.IsEnabled = IsEnabled;
|
||||
Entity.NodeScript = Script?.Entity;
|
||||
}
|
||||
|
||||
|
||||
@@ -468,7 +468,7 @@ namespace Artemis.Core
|
||||
Entity = entity ?? throw new ArgumentNullException(nameof(entity));
|
||||
PropertyDescription = description ?? throw new ArgumentNullException(nameof(description));
|
||||
IsLoadedFromStorage = fromStorage;
|
||||
DataBinding = new DataBinding<T>(this);
|
||||
DataBinding = Entity.DataBinding != null ? new DataBinding<T>(this, Entity.DataBinding) : new DataBinding<T>(this);
|
||||
|
||||
if (PropertyDescription.DisableKeyframes)
|
||||
KeyframesSupported = false;
|
||||
|
||||
Reference in new issue
Block a user