rokups / ImNodes

Node graph implementation for Dear ImGui. Used in https://github.com/rokups/rbfx
MIT License
656 stars 57 forks source link

Refusing connections for two nodes already connected #19

Closed sonoro1234 closed 3 years ago

sonoro1234 commented 3 years ago

All slots are of the same kind, after output1 is connected to input1 it should be possible to connect output1 to input2. ImNodesGIF

The error is found in https://github.com/rokups/ImNodes/blob/master/ImNodes.cpp#L832 that should be if (ignored.node_id == impl->node.id && strcmp(ignored.slot_name, impl->slot.title) == 0 &&

Now trying to make a PR but I must first solve an issue with my last PR where struct style_ was changed to struct Style which results in a redefinition in C code