From 34c8a113da4de302d084ccbfd5f58240692c9f6a Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 17 Mar 2021 10:20:50 +0100 Subject: [PATCH] length of single orbit is not defined by animation length --- pype/tools/launcher/delegates.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pype/tools/launcher/delegates.py b/pype/tools/launcher/delegates.py index 9b88903bc1..cef0f5e1a2 100644 --- a/pype/tools/launcher/delegates.py +++ b/pype/tools/launcher/delegates.py @@ -1,7 +1,6 @@ import time from Qt import QtCore, QtWidgets, QtGui from .constants import ( - ANIMATION_LEN, ANIMATION_START_ROLE, ANIMATION_STATE_ROLE ) @@ -47,7 +46,7 @@ class ActionDelegate(QtWidgets.QStyledItemDelegate): time_diff = time.time() - index.data(ANIMATION_START_ROLE) # Repeat 4 times - part_anim = ANIMATION_LEN / 4 + part_anim = 2.5 part_time = time_diff % part_anim offset = (part_time / part_anim) * 360 angle = (offset + 90) % 360