mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
revert back output handling
This commit is contained in:
parent
740f0276e2
commit
3a52484460
1 changed files with 4 additions and 7 deletions
|
|
@ -623,20 +623,17 @@ class SceneInventoryView(QtWidgets.QTreeView):
|
|||
containers_by_id = self._controller.get_containers_by_item_ids(
|
||||
item_ids
|
||||
)
|
||||
try:
|
||||
result = action.process(list(containers_by_id.values()))
|
||||
if not result:
|
||||
pass
|
||||
result = action.process(list(containers_by_id.values()))
|
||||
if result:
|
||||
self.data_changed.emit()
|
||||
|
||||
elif isinstance(result, (list, set)):
|
||||
if isinstance(result, (list, set)):
|
||||
self._select_items_by_action(result)
|
||||
|
||||
elif isinstance(result, dict):
|
||||
self._select_items_by_action(
|
||||
result["objectNames"], result["options"]
|
||||
)
|
||||
finally:
|
||||
self.data_changed.emit()
|
||||
|
||||
def _select_items_by_action(self, object_names, options=None):
|
||||
"""Select view items by the result of action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue