ID 216465 - RenderManager.StartRender() can not be passed a port only

Follow

Problem summary:
It was previously possible to pass StartRender() 2D ports without a corresponding node, and StartRender would still be able to work out the node to render from. However, the node could only be rendered from once in this way; subsequent calls to StartRender with the same parameters would not launch.
 
In it's current state, StartRender() will not render at all and will instead error, if port(s) are passed to the port or portList args without a node passed in too.
 
To repro open the aovs_prman project and run the following:
node = NodegraphAPI.GetNode('Render_prman')port = node.getOutputPort('primary')# Note the lack of 'node' or 'nodeList' argumentRenderManager.StartRender('previewRender', port=port)

This now produces the following error:

File "bin/python/PyUtilModule/RenderManager/RenderCore.py", line 1419, in StartRenderUnboundLocalError: local variable 'renderOp' referenced before assignment

 

    We're sorry to hear that

    Please tell us why