mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
assets are collecting json serializable data
This commit is contained in:
parent
adc063d3ff
commit
96684f4273
1 changed files with 3 additions and 3 deletions
|
|
@ -182,8 +182,8 @@ class AssetWidget(QtWidgets.QWidget):
|
|||
project = self.db.find_one({'type': 'project'})
|
||||
asset = self.db.find_one({'_id': self.get_active_asset()})
|
||||
data = {
|
||||
'project': project,
|
||||
'asset': asset,
|
||||
'project': project['name'],
|
||||
'asset': asset['name'],
|
||||
'parents': self.get_parents(asset)
|
||||
}
|
||||
return data
|
||||
|
|
@ -193,7 +193,7 @@ class AssetWidget(QtWidgets.QWidget):
|
|||
if entity.get('data', {}).get('visualParent', None) is None:
|
||||
return output
|
||||
parent = self.db.find_one({'_id': entity['data']['visualParent']})
|
||||
output.append(parent)
|
||||
output.append(parent['name'])
|
||||
output.extend(self.get_parents(parent))
|
||||
return output
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue