State:Closed|TargetRelease:No Target|icon_bug|database:public|icon_mari|Resolution:Won't Fix|BugID:526204|
Problem summary
Export Manager stops opening if a Layered Shader is selected as the USD Export Shader
Customer reported version
Mari 5.0v4
Customer reported platform
Linux
Steps to reproduce
1) Create a Layered Shader via the Shaders palette
2) Open the Export Manager and switch to USD Export tab
3) Select the Layered Shader as the USD Export Shader
4) Close the Export Manager
5) Reopen the Export Manager
Expected behaviour
The Export Manager should open.
Actual behaviour
The Export Manager does not open, and an error is returned in the Python Console:
Traceback (most recent call last): File "<string>", line 1, in <module> File "C:/Program Files/Mari5.0v4/Bundle/Media/Scripts\Mari\system\batch_export_dialog.py", line 1701, in showExportDialog dialog = ExportDialog() File "C:/Program Files/Mari5.0v4/Bundle/Media/Scripts\Mari\system\batch_export_dialog.py", line 1019, in __init__ self.addTabWidgets() File "C:/Program Files/Mari5.0v4/Bundle/Media/Scripts\Mari\system\batch_export_dialog.py", line 1042, in addTabWidgets tab_widget = tab_widget_callback() File "C:/Program Files/Mari5.0v4/Bundle/Usd\lib\python\mariUsd\usdExportManagerTab.py", line 1298, in generate_usd_export_widget return USDExportWidget() File "C:/Program Files/Mari5.0v4/Bundle/Usd\lib\python\mariUsd\usdExportManagerTab.py", line 982, in __init__ self.on_shader_assignment_changed(None) File "C:/Program Files/Mari5.0v4/Bundle/Usd\lib\python\mariUsd\usdExportManagerTab.py", line 1112, in on_shader_assignment_changed new_rows = self.export_item_model.update_shader_items(selected_shaders) File "C:/Program Files/Mari5.0v4/Bundle/Usd\lib\python\mariUsd\usdExportManagerTab.py", line 537, in update_shader_items self.updateShaderInputs(shader_item) File "C:/Program Files/Mari5.0v4/Bundle/Usd\lib\python\mariUsd\usdExportManagerTab.py", line 575, in updateShaderInputs new_shader_input_infos = self._advancedInputList(shader) File "C:/Program Files/Mari5.0v4/Bundle/Usd\lib\python\mariUsd\usdExportManagerTab.py", line 548, in _advancedInputList shader_model_input = shader_model.input(input_name) AttributeError: 'NoneType' object has no attribute 'input' We're sorry to hear that
Please tell us why