mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
add asset on task item won't crash but create asset on it's parent
This commit is contained in:
parent
c26f44e994
commit
6f85479d77
1 changed files with 3 additions and 0 deletions
|
|
@ -380,6 +380,9 @@ class HierarchyModel(QtCore.QAbstractItemModel):
|
|||
item_id = source_index.data(IDENTIFIER_ROLE)
|
||||
item = self.items_by_id[item_id]
|
||||
|
||||
if isinstance(item, TaskItem):
|
||||
item = item.parent()
|
||||
|
||||
if isinstance(item, (RootItem, ProjectItem)):
|
||||
name = "ep"
|
||||
new_row = None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue