Open avlec opened 3 months ago
That's interesting... My initial guess would be some error caused by the latest updates to the recursion blacklist code. Sadly I won't be able to investigate it myself until September. As per the lambda, Im not sure the bug is exactly the same but let's hope so
Yeah it seems like they'd be broken for the same reasons. Inheriting from lambdas is something that's actually used for a trick with std::visit
that's outlined on the cppreference website as the overloaded
template. So it should work. I more placed that bit of code in here because I stumbled across this bug because I was doing that. And I was doing that to prove that it'd be easy to add a convenience wrapper to add simple nodes to the editor without having to write a class.
I just remembered, due to the dynamic nature of this type of pins, the value from an input is returned directly when calling showIN()
This was a design decision I made at the time, because I think using the same getInVal() function mixes two different things. Also searching by UID for something that won't always exist seems not the best implementation when it comes to using the feature.
But I'd like to hear some feedback and different opinions
I think that this should work because I tried it and others certainly will. With the obvious caveat that if the pin didn't render on the current draw loop before referencing it would be invalid.
I think I'll still keep them separate, creating a method called getDynamicInVal()
Was trying out the following examples and they seem to crash when connecting pins to other objects with a Pin UID not found error.
Using the following Node definition
I noticed this while also trying out the notion of wrapping lambdas up as nodes, which I would also imagine should work. And it does render but has the same crash.