mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 03:48:56 +00:00
Editor - Fixed suspending layers
Editor - Disable suspending layers with spacebar Nodes - Fixed changed event source node not using numerics Nodes - Simplify checking wether a pin is numeric
This commit is contained in:
1 parent
eec2419005
commit
5c4175ed9c
16 files changed
+55
-36
No files matched your search
@@ -42,16 +42,17 @@ public class DataModelNode : Node<DataModelPathEntity, DataModelNodeCustomViewMo
|
||||
}
|
||||
else
|
||||
{
|
||||
Output.Value = Output.Type == typeof(Numeric) ? new Numeric(pathValue) : pathValue;
|
||||
Output.Value = Output.IsNumeric ? new Numeric(pathValue) : pathValue;
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateOutputPin()
|
||||
{
|
||||
Type? type = _dataModelPath?.GetPropertyType();
|
||||
if (Numeric.IsTypeCompatible(type))
|
||||
if (type == null)
|
||||
type = typeof(object);
|
||||
else if (Numeric.IsTypeCompatible(type))
|
||||
type = typeof(Numeric);
|
||||
type ??= typeof(object);
|
||||
|
||||
if (Output.Type != type)
|
||||
Output.ChangeType(type);
|
||||
|
||||
Reference in new issue
Block a user