-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculation Broken? #138
Comments
Can you check whether:
|
I'm having a similar problem. In my case I had forgotten to include the Engine plugin, and once I did that calculation mostly worked. That is, when I manually change an option, the nodes recalculate. What I'm still struggling with is that when the graph loads initially, calculation does not run. I tried calling |
@benkimball What do you mean with "loading initially"? Like calling the |
Sure! Let me expand a little on what I'm doing with some code. Here's my NodeEditor component, which wraps the
When I start the vue server, and load the app in my browser on localhost, I see the connected nodes, but the SumNode does not display the computed sum from its two inputs until I make a change, for example by clicking to increment or decrement one of the operands. |
@benkimball I can reproduce this. Could not find the error yet, but I'll continue trying 😉 |
@benkimball Wow it took me way to long to find the bug. It was a race condition in the engine plugin, where the initial calculations due to adding nodes and connections were still running when calling The bug should be fixed in v.1.8.7 @TinusNL do you still have problems with the calculation? |
I think you fixed it! I am not having anymore problems right now. Thanks for the support. |
Hello,
I ran into a problem that I can't seem to be able to fix. The problem is that the calculation function is not running when it needs to. How/Why this happens I am not sure. I was using it yesterday it worked fine. Didn't change anything but somehow it still broke. I tried 2 things that came to my mind. I tested these things by putting
console.log("Working!");
in de calculate functions but it doesn't seem to give the reaction it should.-❌
this.engine.calculate();
- App.vue-✔️
this.calculate();
- Node.jsI also tried reinstalling the packages but this didn't change anything. I hope that there is a way to fix this issue!
The text was updated successfully, but these errors were encountered: