State:Closed|icon_bug|icon_katana|database:public|Resolution:Fixed|TargetRelease:2.1v6|BugID:233894|
Problem summary:
When starting a new KATANA UI session, and choosing the Resize All to Contents command in the context menu of a Scene Graph tab column title, an exception is raised.
A similar exception is raised when choosing the Resize to Contents command in the context menu of the Lights column title in the Scene Graph tab.
Steps to reproduce:
Expected behaviour:
All columns in the Scene Graph tab are resized to their contents. In the case of a fresh KATANA UI session, the Scene Graph tab does not show any scene graph locations, and the columns should be resized to sensible minimal widths.
Actual behaviour:
An exception is raised with a traceback similar to the following:
[ERROR python.root]: A ValueError occurred in "TreeWidgetViewLink.py": max() arg is an empty sequence Traceback (most recent call last): File "python/UI4/Widgets/SceneGraphView/HorizontalHeaderView.py", line 489, in __on_resizeAllToContentsAction_triggered File "python/UI4/Widgets/SceneGraphView/TreeWidgetViewLink.py", line 377, in resizeColumnToContents ValueError: max() arg is an empty sequence Workaround:
The commands work correctly as soon as at least one scene graph location is shown in the Scene Graph tab, so a workaround is to set the view flag on any node in the Node Graph tab, so that the Scene Graph tab is filled with locations of the scene that is produced by that node. The commands will then work as expected.
Reproduced versions/platforms:
We're sorry to hear that
Please tell us why