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:
parent
a8578e9907
commit
c94df25856
@ -15,6 +15,8 @@ namespace XNodeEditor
|
|||||||
public class FullyDynamicPortPropertyResolver<T> : BaseMemberPropertyResolver<T>
|
public class FullyDynamicPortPropertyResolver<T> : BaseMemberPropertyResolver<T>
|
||||||
where T : Node
|
where T : Node
|
||||||
{
|
{
|
||||||
|
internal struct Nothing { }
|
||||||
|
|
||||||
private List<OdinPropertyProcessor> processors;
|
private List<OdinPropertyProcessor> processors;
|
||||||
|
|
||||||
protected override InspectorPropertyInfo[] GetPropertyInfos()
|
protected override InspectorPropertyInfo[] GetPropertyInfos()
|
||||||
@ -52,7 +54,7 @@ namespace XNodeEditor
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
// value can't possibly matter here so many this "lie" is ok
|
// 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()
|
new AsDynamicPortNoDataAtribute()
|
||||||
{
|
{
|
||||||
BackingValue = ShowBackingValue.Never,
|
BackingValue = ShowBackingValue.Never,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user