[Scriptnode] Prevent Renaming a Node ID When Attempting to Use One That Already Exists
-
This needs a failsafe. With bigger networks, it's so easy to turn the whole thing into a shitshow entirely by accident.
The worst thing is that if you already have a connection, then rename a node and accidentally repeat the ID, you won't know you did it until you restart HISE and suddenly your connections are all fucked up.
-
I generally think that tying node connections to a string ID, that is front-facing and changeable, with the repercussions of a bad rename not being instantly audible, is a bad idea.
Nodes should have an internal id which is a number or code or whatever, that we can in no way change. If the idea behind this was to make connections it easily readable in an XML, this only works if you're clearly naming your nodes, which is often discouraged by the title bar size (math nodes can fit maybe one word).
-
@aaronventure yes, actually it would make sense to just add another property called
Name
that is solely used to be displayed in the header and leave theID
property constant and unchangeable. -
-
-