mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
fixed animations in instance view
This commit is contained in:
parent
91dde033a9
commit
73a8581825
1 changed files with 4 additions and 3 deletions
|
|
@ -160,6 +160,7 @@ class InstanceView(OverviewView):
|
|||
def __init__(self, parent=None):
|
||||
super(InstanceView, self).__init__(parent)
|
||||
self.viewport().setMouseTracking(True)
|
||||
self.clicked.connect(self.item_expand)
|
||||
|
||||
def mouseMoveEvent(self, event):
|
||||
index = self.indexAt(event.pos())
|
||||
|
|
@ -244,11 +245,11 @@ class InstanceView(OverviewView):
|
|||
elif event.pos().x() > self.width() - 20:
|
||||
self.show_perspective.emit(index)
|
||||
else:
|
||||
if event.pos().x() < EXPANDER_WIDTH:
|
||||
self.item_expand(index)
|
||||
else:
|
||||
if event.pos().x() >= EXPANDER_WIDTH:
|
||||
self.group_toggle(index)
|
||||
self.item_expand(index, True)
|
||||
event.accept()
|
||||
return True
|
||||
return super(InstanceView, self).mouseReleaseEvent(event)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue