Comments (3)
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.
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.
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)
- Node categories
- CustomPortBehaviour With PropertyDrawer HOT 1
- Undo break dynamic output
- Default input and output parameters
- Is there a way to move port and parameter text locations?
- Undo will lose all group view ! HOT 3
- Nothing shows up in the context menu upon import.
- Is this project abandoned? HOT 15
- Calling `AddExposedParameter` in `BaseGraph.OnEnable` causes all ports and edges to disappear. HOT 3
- CustomPortBehavior from base class not respected.
- This asset causes large delays for entering playmode and recompiling assemblies
- Expanding Exposed Parameter Resets Name
- `FilterCreateNodeMenuEntries` Not working when I create Node by drag HOT 1
- I cant set the value in Parameter Window
- Huge GC alloc, sky high Cpu spikes, almost unusable at runtime
- 关于黑板变量赋值被锁定的问题
- Node in stack can't be dragged out and are stuck HOT 1
- Visual glitches on edges when they're bent at ~180 degrees HOT 1
- Leting user to edit graph in game mode
- ForNode can't work together with WaitNode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nodegraphprocessor.