rokups / ImNodes

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

EndCanvas unselect one node #23

Open Sagigamil opened 3 years ago

Sagigamil commented 3 years ago

HI! I noticed a bug in ImNodes::EndCanvas() function. It's reset the single_selected_node to null if ctrl and shift keys not clicked, So when I click a node with mouse only, the function ImNodes::Ez::BeginNodeset select to true, but in next call to this function, select becomes false.

I don't sure why you made ImNodes::EndCanvas() function act and if it's really a bug, but I think that after clicking a node it should be selected without using shift or ctrl keys.

Sagi

rokups commented 3 years ago

I am unable to replicate this issue in a sample application. Can you? Also could you link exact lines you think are at fault?