mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Fix plugins returning empty list
This commit is contained in:
parent
582dce426f
commit
5ccdfc258a
1 changed files with 4 additions and 0 deletions
|
|
@ -780,6 +780,8 @@ class InstanceModel(QtGui.QStandardItemModel):
|
||||||
|
|
||||||
def update_with_result(self, result):
|
def update_with_result(self, result):
|
||||||
instance = result["instance"]
|
instance = result["instance"]
|
||||||
|
if isinstance(instance, list):
|
||||||
|
instance = instance.pop() if instance else None
|
||||||
if instance is None:
|
if instance is None:
|
||||||
instance_id = self.controller.context.id
|
instance_id = self.controller.context.id
|
||||||
else:
|
else:
|
||||||
|
|
@ -976,6 +978,8 @@ class TerminalModel(QtGui.QStandardItemModel):
|
||||||
prepared_records = []
|
prepared_records = []
|
||||||
instance_name = None
|
instance_name = None
|
||||||
instance = result["instance"]
|
instance = result["instance"]
|
||||||
|
if isinstance(instance, list):
|
||||||
|
instance = instance.pop() if instance else None
|
||||||
if instance is not None:
|
if instance is not None:
|
||||||
instance_name = instance.data["name"]
|
instance_name = instance.data["name"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue