Problem summary: Nuke crashes when removing the last input of a Cloned Switch node
This issue only seems to occur if the Switch node has 3 or more inputs to begin with.
Customer reported version: Nuke 15.1v3
Customer reported platform: Rocky 8
Steps to reproduce: 1) Launch Nuke and create a Switch node in the Node Graph. 2) Add any three (or more) inputs to the Switch node: 3) Create a Clone by right-clicking the Switch node and navigating to Edit > Clone, or use the Alt+K hotkey: 4) Remove the last input from the original Switch node, and observe Nuke's performance. In this case, the "2" input between the ColorWheel and Switch nodes should be severed.
Expected behavior: Reducing the total number of inputs for a Cloned Switch node should not cause Nuke to crash.
Actual behavior: Nuke crashes if a Switch node with three or more input connections is Cloned and its overall number of inputs is reduced.
Workaround: No known workaround at this time.
Reproduced by Support in: Nuke 15.1v3 - Windows 11, macOS 14 Sonoma Nuke 15.1v2 - Windows 11 Nuke 15.1v1 - Windows 11, macOS 14 Sonoma -- Regression
Unable to reproduce bug in: Nuke 15.0v5 - Windows 11, macOS 14 Sonoma
Earliest version tested: Nuke 15.0v5 - This issue doesn't appear in this version and has regressed