A node may not have all of it's outputs explicitly specified. If an output connection is specified on a MaterialX node and
the output is not found on the upstream node then a connection will not be made. This affects load.
If you create a node and make a connection then this will not occur since the qx_node populates itself with all the required outputs from the node definition.
Change
To perform the same action on the mx_node as the qx_node, some additional logic has been added to add input any missing outputs. This is for now only for multioutput nodes as this appears to be the failing case. Note that this does not add any additional information not already added on save from the qx_node.
Test
This is an example glTF imported material. In this case gltf_colorimage does not have it's outputs specified so will fail connection before this change.
This is a snapshot after the fix (with the appropriate base_color connection being made.
Note: The error showing up is not due to this issue but it seems the "auto nodegraph" creation is creating invalid nodegraph outputs. Turing this off removes this error.
Issue
A node may not have all of it's outputs explicitly specified. If an output connection is specified on a MaterialX node and the output is not found on the upstream node then a connection will not be made. This affects load.
If you create a node and make a connection then this will not occur since the qx_node populates itself with all the required outputs from the node definition.
Change
To perform the same action on the mx_node as the qx_node, some additional logic has been added to add input any missing outputs. This is for now only for
multioutput
nodes as this appears to be the failing case. Note that this does not add any additional information not already added on save from the qx_node.Test
This is an example glTF imported material. In this case
gltf_colorimage
does not have it's outputs specified so will fail connection before this change.This is a snapshot after the fix (with the appropriate
base_color
connection being made.