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:
Robert committed 2022-07-31 17:17:37 +02:00
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);