If there are two LookFiles assigned in a scene that contain the same non-default pass and at least one of them contains global attributes, the non-default pass is not resolved correctly.
Steps to reproduce
Create a PrimitiveCreate node and append two AttributeSet nodes to separate output arrows.
Set an attribute extra.special on /root to 1 in one AttributeSet and to 2 in the other.
Bake a LookFile at location /root with a non-default pass and connect one AttributeSet node to the default input, the other to the second pass input.
Make sure includeGlobalAttributes is set to Yes and bake the Lookfile.
With the same setup set the attribute newAttr to 1 and 2 on /root/world/geo/primitive and bake a LookFile with rootLocation /root/world/geo/primitive and includeGlobalAttributes set to No.
Create a new PrimitiveCreate node, append a LookFileAssign node assigning global.klf to /root and another assigning local.klf to /root/world/geo/primitive1.
Append a LookFileManager, Find All Look Files in Scene… and add both Look Files.
Inspect /root and /root/world/geo/primitive1 at the default and non-default passes. Result: In the default pass, all attributes are being set as expected. In the non-default pass only the global attribute at /root is set correctly, the attribute at root/world/geo/primitive1 is set to the same value as in the default pass.