1
0
mirror of https://github.com/Siccity/xNode.git synced 2025-12-20 09:16:01 +08:00

Fixed Output registering as an Input

This commit is contained in:
Thor Brigsted 2017-10-08 23:33:25 +02:00
parent 3e54f60188
commit 9dd3e1db75

View File

@ -39,7 +39,7 @@ public class NodePort {
var attribs = fieldInfo.GetCustomAttributes(false); var attribs = fieldInfo.GetCustomAttributes(false);
for (int i = 0; i < attribs.Length; i++) { for (int i = 0; i < attribs.Length; i++) {
if (attribs[i] is Node.InputAttribute) _direction = IO.Input; if (attribs[i] is Node.InputAttribute) _direction = IO.Input;
else if (attribs[i] is Node.InputAttribute) _direction = IO.Output; else if (attribs[i] is Node.OutputAttribute) _direction = IO.Output;
} }
} }