When custom knobs are added onto a node, the action is only added to the undo stack if a knob has previously been added to that same node using the Drag and Drop Knobs workflow.
If no custom knob has been previously added this way, undoing will skip to the action before any knob editing occurred (for example by undoing the node creation).
This goes back to the creation of the Drag and Drop Knobs workflow (Nuke 11.2v1).
Before then, the knob actions don't seem to be added to the undo stack at all.
Customer reported version
nuke.11.2v4
Customer reported platform
centos7
Steps to reproduce
1) Launch Nuke
2) Create a NoOp node
3) Right-click on the NoOp node panel, and select 'Manage User knobs'
4) Add a Custom knob and close the Knob manager
5) Go to Edit > Undo
Result 1: Node creation, not knob creation, is undone
6) Create another NoOp node
7) Enable Knob Edit Mode (Ctrl + Alt + E)
8) Drag and Drop a custom user knob from the list of knob types, onto the NoOp nodepanel
9) Disable Knob Edit Mode (Ctrl + Alt + E)
10) Go to Edit > Undo
Result 2: The creation of the custom user knob is undone
Workaround
Unknown.
Reproduced by support
This bug has been reproduced in:
Nuke 11.3v2 - Windows 7 - CentOS7 - MacOSX 10.13
Nuke 11.2v1 - Windows 7
Nuke 11.1v1 - Windows 7
Nuke 11.0v1 - Windows 7
Nuke 10.5v1 - Windows 7
Nuke 10.0v1 - Windows 7
Nuke 9.0v1 - Windows 7
Nuke 8.0v1 - Windows 7 - CentOS7 - MacOSX 10.13
Earliest version tested
- This issue appears to be in all versions of the product
Expected behaviour
Undoing should always undo the previous action, consistently.
Actual behaviour
Undoing without first using the Drag and Drop Knobs workflow will mean that knob editing actions won't be added to the undo stack. It is only once DnD has been used, that the actions will be correctly added to the stack.