1
0
mirror of https://github.com/Siccity/xNode.git synced 2026-03-26 22:49:02 +08:00

Change user provider ports to have no data instead of pretending to be an int.

This commit is contained in:
Kailey Joanette 2019-10-06 17:29:01 -04:00
parent a8578e9907
commit c94df25856

View File

@ -15,6 +15,8 @@ namespace XNodeEditor
public class FullyDynamicPortPropertyResolver<T> : BaseMemberPropertyResolver<T>
where T : Node
{
internal struct Nothing { }
private List<OdinPropertyProcessor> processors;
protected override InspectorPropertyInfo[] GetPropertyInfos()
@ -52,7 +54,7 @@ namespace XNodeEditor
continue;
// value can't possibly matter here so many this "lie" is ok
infos.AddValue( port.fieldName, () => 0, value => { },
infos.AddValue( port.fieldName, () => new Nothing(), value => { },
new AsDynamicPortNoDataAtribute()
{
BackingValue = ShowBackingValue.Never,