mirror of
https://github.com/Siccity/xNode.git
synced 2025-12-20 09:16:01 +08:00
Enables Port Type Override
When Constructing a NodePort, check the PortTypeOverrideAttribute to change the ValueType of the Port.
This commit is contained in:
parent
111378de94
commit
556547b541
@ -79,6 +79,10 @@ namespace XNode {
|
|||||||
_connectionType = (attribs[i] as Node.OutputAttribute).connectionType;
|
_connectionType = (attribs[i] as Node.OutputAttribute).connectionType;
|
||||||
_typeConstraint = (attribs[i] as Node.OutputAttribute).typeConstraint;
|
_typeConstraint = (attribs[i] as Node.OutputAttribute).typeConstraint;
|
||||||
}
|
}
|
||||||
|
// Override ValueType of the Port
|
||||||
|
if(attribs[i] is PortTypeOverrideAttribute) {
|
||||||
|
ValueType = (attribs[i] as PortTypeOverrideAttribute).type;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user