From a48d77e609f84a7a04bf5de95fce12e05461ca6c Mon Sep 17 00:00:00 2001 From: Jakub Trllo Date: Thu, 9 Jun 2022 10:53:15 +0200 Subject: [PATCH] conver repres cursor to list --- openpype/tools/sceneinventory/switch_dialog.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openpype/tools/sceneinventory/switch_dialog.py b/openpype/tools/sceneinventory/switch_dialog.py index 92ef2b3553..aa4dcd73cd 100644 --- a/openpype/tools/sceneinventory/switch_dialog.py +++ b/openpype/tools/sceneinventory/switch_dialog.py @@ -165,11 +165,11 @@ class SwitchAssetDialog(QtWidgets.QDialog): content_loaders.add(item["loader"]) project_name = self.active_project() - repres = get_representations( + repres = list(get_representations( project_name, representation_ids=repre_ids, archived=True - ) + )) repres_by_id = {repre["_id"]: repre for repre in repres} # stash context values, works only for single representation