crolando / plano

refactor & augmentation of thedmd's imgui-node-editor blueprint example to be more fleshed out
6 stars 3 forks source link

Cannot run with the Blueprint example's sidepanel #3

Open crolando opened 1 year ago

crolando commented 1 year ago

@adamsepp is designing a way to execute a program that is defined by the nodes. This user has created these forks to implement a scheme for program execution: https://github.com/adamsepp/nodos_experimental https://github.com/adamsepp/plano_experimental

@adamsepp I am not able to run your examples. The program dies in the way described here: https://github.com/thedmd/imgui-node-editor/issues/191

I found that I could get it running by disabling the sidepanel. That is, in your plano_experimental frame.cpp file, I got it working by commenting out these lines:

    //Splitter(true, 4.0f, &leftPaneWidth, &rightPaneWidth, 50.0f, 50.0f);

    //ShowLeftPane(leftPaneWidth - 4.0f);

    //ImGui::SameLine(0.0f, 12.0f);

I must apologize, this is not something I understand. I hope in the bug above, we can get to the bottom of it. I can port whatever changes are made there into Plano.

adamsepp commented 1 year ago

Hi @crolando, I'm not sure why the Splitter caused some issues on your side... I changed the code to use an ImGui::Table instead of Splitter... So it should be ok now.... I have now 3 panels (left = overview; middle = node editor; right = additional settings/info for a node if selected...)

Besides that I commited following changes:

crolando commented 1 year ago

Note: adamsepp's implementation is in a VS project