Closed sphaero closed 4 years ago
It's because of this line I guess:
https://github.com/rokups/ImNodes/blob/e3431ce8bad2d68e52f728edd14aebaac7e8727b/ImNodesEz.cpp#L155
Which implies somewhere else a group has been started.
Right. You cant really skip this. Look: https://github.com/rokups/ImNodes/blob/e3431ce8bad2d68e52f728edd14aebaac7e8727b/ImNodesEz.cpp#L146-L155
They create a group for node content. So if you do not have any input nodes - call ImNodes::Ez::InputSlots(nullptr, 0);
. Comments should probably clarify that.
Indeed, or if you want an easy api just add a InputSlots() method with no arguments which does that. I'm not sure what is cleanest. You could also remove the BeginGroup in InputSlots and clarify in the docs that people are advised to group the node content.
Just comment a line which renders the input slots in sample.cpp: