mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
added _add_asset method
This commit is contained in:
parent
db10512a30
commit
8b30c7a5ed
1 changed files with 6 additions and 1 deletions
|
|
@ -289,7 +289,12 @@ class HierarchyView(QtWidgets.QTreeView):
|
|||
self.edit(task_type_index)
|
||||
|
||||
def _on_shift_enter_pressed(self):
|
||||
index = self.currentIndex()
|
||||
self._add_asset()
|
||||
|
||||
def _add_asset(self, index=None):
|
||||
if index is None:
|
||||
index = self.currentIndex()
|
||||
|
||||
if not index.isValid():
|
||||
return
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue