ID 362039 - LookFileBake - Parameters tab's "Passes" section shows incorrect information

Follow

Problem summary:

When deleting Passes from a LookFileBake node's Parameters tab, the deleted pass will be erased from the node graph, but not from the widget. Attempting to rename one of these phantom passes will then raise an exception.

Steps to reproduce:

  1. Open the "Hello Pony" example project, and connect a LookFileBake node to the GafferThree.
  2. In the LookFileBake node's parameters, add a couple of pass inputs via the Passes/Add button.
  3. Verify that the node has added 2 new ports, called pass and pass1.
  4. Delete the nodes via the right hand delete button on the new pass entries, or via undo.

Expected behaviour:

Deleting passes removes ports from the node and the parameters widget.

Actual behaviour:

Deleting passes removes ports from the node but not the parameters widget.

When renaming one of the deleted passes, an exception is raised, with a traceback similar to the following:


[ERROR python.root]: An AttributeError occurred in "LookFileBake.py": 'NoneType' object has no attribute 'getName'    Traceback (most recent call last):      File "bin\python\UI4\Widgets\SortablePanel.py", line 314, in __panelValueChangedCallback      File "bin\python\UI4\FormMaster\Editors\LookFileBake.py", line 296, in panelValueChanged    AttributeError: 'NoneType' object has no attribute 'getName'

Workaround:

  1. Set the edit flag on another node.
  2. Flush caches.
  3. Set the edit flag back to the LookFileBake node.

Tested versions/platforms:

  • 2.1v5 - Unaffected
  • 2.5v1 - Affected

    We're sorry to hear that

    Please tell us why