Nodes - Save data binding node scripts

This commit is contained in:
Robert committed 2021-08-25 15:32:58 +02:00
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;