mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Data model nodes - Only allow picking data model entries of types supported by nodes
Data models - Fixed path registration not registering two paths pointing to the same property twice (fixes data model-reliant node scripts that stop updating)
This commit is contained in:
1 parent
3836fae37a
commit
94b91bfc31
9 files changed
+116
-32
No files matched your search
@@ -345,8 +345,8 @@ public abstract class DataModel
|
||||
{
|
||||
lock (_activePaths)
|
||||
{
|
||||
if (_activePaths.Contains(path))
|
||||
return;
|
||||
if (_activePaths.Any(p => ReferenceEquals(p, path)))
|
||||
throw new ArtemisCoreException("Path already present on this data model, initialization done twice?");
|
||||
|
||||
_activePaths.Add(path);
|
||||
|
||||
|
||||
Reference in new issue
Block a user