Giter Site home page Giter Site logo

Comments (3)

merpheus-dev avatar merpheus-dev commented on May 29, 2024

Update: I believe I might have a solution, I've debugged further and found that in BaseGraphView.cs:

if (serializeToGraph)
{
				NodePort inputPort = inputNodeView.nodeTarget.inputPorts.FirstOrDefault(o => o.portData.identifier == inputPortView.portData.identifier);
				NodePort outputPort = outputNodeView.nodeTarget.outputPorts.FirstOrDefault(o => o.portData== outputPortView.portData);

				e.userData = graph.Connect(inputPort, outputPort);
}

This line is
NodePort outputPort = outputNodeView.nodeTarget.outputPorts.FirstOrDefault(o => o.portData== outputPortView.portData); causing that issue. So I've changed it to o.portData.identifier== outputPortView.portData.identifier. And now it seems to be working for output ports.

Do you see any setbacks or side effects that it will cause ? If not, I'll send a PR.

from nodegraphprocessor.

alelievr avatar alelievr commented on May 29, 2024

Hi, indeed there is an error in the code that finds the output port, it must use the identifier to find the port. I did a fixed in master for this: 33901bf where i use GetPort instead of iterating over all ports manually.

Thanks for reporting the issue and taking the time to investigate :)

from nodegraphprocessor.

merpheus-dev avatar merpheus-dev commented on May 29, 2024

Thank you for your interest as well :) Good solution, I'll pull and see how it goes. For know I am closing the issue, if something like that occurs I'll open it back up. Cheers!

from nodegraphprocessor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.