ID 526777 - Nodes do not use PreferredInput=1 tagged input for auto-connections in the Node Graph

Follow

Problem summary
Nodes do not use PreferredInput=1 tagged input for auto-connections in the Node Graph
 
Customer reported version
Mari 5.0v4
 
Customer reported platform
Windows 10
 
Steps to reproduce
 
1) Download the attached node XML

2) In any project, register the node using the following command (replacing the path with the appropriate location):
 

mari.gl_render.registerCustomNodeFromXMLFile("preferred input test node", "path/to/node.xml")
 
3) Create a Cloud node
 
4) Select the Cloud node
 
5) While the Cloud node is selected, create a "preferred input test node"
 
Expected behaviour
The node should auto-connect to Input 2, which has the PreferredInput=1 tag in the node XML:
 
 
Actual behaviour
The node auto-connects to Input 1:
 
 
Workaround
Unknown.
 
Reproduced by support
This bug has been reproduced in:
Mari 5.0v4 - Windows 10 - CentOS 7.9
Mari 4.8v1 - Windows 10
Mari 3.0v1 - Windows 10 - CentOS 7.9
 
Earliest version tested
Mari 3.0v1 - This issue appears to be in all tested versions of the product
 
 

    We're sorry to hear that

    Please tell us why