Fix an error with parsing MaterialX when input and output types of connected node's sockets.
EFFECT OF CHANGE
Node's link in MaterialX nodetree editor now becomes invalid when types of output and input node's sockets are different.
Fixed switch to MaterialX nodetree editor if secondary window of blender are opened.
TECHNICAL STEPS
Added update_links() method to MxNodeTree.
It is used when Blender calls update() of MxNodeTree and depsgraph_update of ui/material.py.
In depsgraph_update now iterates throught all context.window_manager.windows.
NOTES FOR REVIEWERS
In MaterialX node editor now links become red/invalid and nodes aren't calculated. To have the correct render result, the user needs to define all socket types properly before rendering.
PURPOSE
Fix an error with parsing MaterialX when input and output types of connected node's sockets.
EFFECT OF CHANGE
Node's link in MaterialX nodetree editor now becomes invalid when types of output and input node's sockets are different. Fixed switch to MaterialX nodetree editor if secondary window of blender are opened.
TECHNICAL STEPS
Added update_links() method to MxNodeTree. It is used when Blender calls update() of MxNodeTree and depsgraph_update of ui/material.py. In depsgraph_update now iterates throught all context.window_manager.windows.
NOTES FOR REVIEWERS
In MaterialX node editor now links become red/invalid and nodes aren't calculated. To have the correct render result, the user needs to define all socket types properly before rendering.