ID 119720 - Incorrect dimming of nodes not contributing to viewed node if a VariableSwitch node references Graph State Variable set with an expression or via the NodegraphAPI

Follow

Problem summary
When the Edit > Dim Nodes Not Contributing to Viewed Nodes toggled menu item of the Node Graph tab is turned on, nodes in the Node Graph are not dimmed correctly if they are connected to a VariableSwitch node that targets a Graph State Variable in a VariableSet node set either via an expression or via NodegraphAPI functions.
The dimming is only updated when the viewed node is changed.
 
Steps to reproduce
  1. In the Node Graph tab, turn the Edit > Dim Nodes Not Contributing to Viewed Nodes toggled menu item on.
  2. Open the attached Katana project.
  3. Set the view flag on the VariableSet node. Its variableValue parameter is set to an expression that references the value of the var parameter on the controller node.
  4. Set the edit flag on the controller node. Change the value of the var parameter from ‘maco’ to ‘taco’.
Expected behaviour
The AttributeSet_maco node is dimmed in the Node Graph, and AttributeSet_taco is undimmed.
The custom attribute set on /root/world changes from var_maco to var_taco.
Actual behaviour
The attribute on /root/world changes from var_maco to var_taco, but AttributeSet_taco remains dimmed, giving the appearance that AttributeSet_maco is still active.
 
Workaround
Set the view flag on any other node, then set it on VariableSet again (if the other node is upstream of VariableSet, to ensure that the local GSV is still being set - this is not necessary if the view flag is set on a different node downstream of VariableSet).
Another (albeit heavy-handed) workaround is to Flush Caches.
 
Reproduced by support
Katana 3.0v1

    We're sorry to hear that

    Please tell us why