Skip to content
This repository has been archived by the owner on Apr 9, 2024. It is now read-only.

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

Open
walksanatora opened this issue Aug 9, 2023 · 0 comments
Open

Comments

@walksanatora
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant