added _add_asset method

This commit is contained in:
iLLiCiTiT 2021-05-11 12:16:23 +02:00
parent db10512a30
commit 8b30c7a5ed

View file

@ -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