Reply To: Feature request: Improved "Replace"

NodeCanvas Forums General Discussion Feature request: Improved "Replace" Reply To: Feature request: Improved "Replace"

#13876
Gavalakis
Keymaster

Hey,

Thats a good suggestion and no issues with doing that.
I’ve just added this functionality (slightly different to work for both actions and conditions just in case) for the next version.

Because Binary Selector is special in that it only has 2 max children, it is treated differently than other composites which all of them can have any number of children and that is why it does not derive from BTComposite. Replacing a Sequencer with say 5 children for example, with a Binary Selector, would make 3 of those child connections to be lost (even though that needs some changes to the ‘ReplaceWith’ method), which I am not sure it’s a good thing.

Thanks.

Join us on Discord: https://discord.gg/97q2Rjh