setzer22 / egui_node_graph

Build your node graph applications in Rust, using egui
MIT License
718 stars 134 forks source link

missing input on Connection Only and then Connection/Constant node #105

Open walksanatora opened 1 year ago

walksanatora commented 1 year ago

so i made a node

MyNodeTemplate::JoinString => {
                graph.add_input_param(
                    node_id,
                    "join".to_string(),
                    DataType::String,
                    ValueHolder::String {
                        value: " ".to_string(),
                    },
                    InputParamKind::ConnectionOrConstant,
                    true,
                );
                graph.add_input_param(
                    node_id,
                    "strings".to_string(),
                    DataType::List,
                    ValueHolder::List { value: vec![] },
                    InputParamKind::ConnectionOnly,
                    true,
                );
                graph.add_output_param(node_id, "output".to_string(), DataType::String);
            }

as you can see it should have 2 node inputs yet when i run the example image it only has 1 node input instead of 2 I tried swapping the order of the join and strings arguments yet it never shows the connection for the strings