ID 231260 - Exception when choosing commands from the Pin submenu in the context menu of a location in the Scene Graph tab

Follow

Problem summary:

Pinning of scene graph locations in the Scene Graph tab is not working.

Steps to reproduce:

  1. Right-click a location in the Scene Graph tab.
  2. In the context menu, choose Pin > Set Local Pin, or
  3. In the context menu, choose Pin > Pin Visible Leaves.

Expected behaviour:

The right-clicked location or visible leaf locations underneath it are meant to be pinned, which means that their geometry is meant to be drawn even if the locations are no longer expanded to.

A small blue pin icon is meant to appear next to the location type icon of pinned locations.

Actual behaviour:

An exception is raised, with a traceback similar to the following:


A TypeError occurred in "ScenegraphManager.py": addPinnedLocations(): Given locations argument is not a list, tuple, or string: set(['/root'])Traceback (most recent call last):  File "python/UI4/Tabs/SceneGraphTab/SceneGraphTab.py", line 849, in __setLocalPinsActionCallback  File "python/UI4/Tabs/SceneGraphTab/SceneGraphTab.py", line 1602, in __setSelectionPinned  File "python/Nodes3DAPI/ScenegraphManager.py", line 286, in addPinnedLocations  File "python/Nodes3DAPI/ScenegraphManager.py", line 449, in __validateLocationsArgumentTypeError: addPinnedLocations(): Given locations argument is not a list, tuple, or string: set(['/root'])

The locations in question are not pinned.

The small blue pin icon does not appear.

Workaround:

No known workaround.

Reproduced versions/platforms:

  • 2.1v4 on Linux
  • 2.1dev on Linux
  • 2.5dev on Linux

    We're sorry to hear that

    Please tell us why