mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-07-20 20:44:29 +08:00
Make camera animation feel snappier
It no longer eases into the animation, so it feels as if it reacts more immediately.
This commit is contained in:
parent
557044b11c
commit
b45d091641
@ -11,8 +11,8 @@ class CameraAnimation(QVariantAnimation):
|
|||||||
def __init__(self, parent = None):
|
def __init__(self, parent = None):
|
||||||
super().__init__(parent)
|
super().__init__(parent)
|
||||||
self._camera_tool = None
|
self._camera_tool = None
|
||||||
self.setDuration(500)
|
self.setDuration(300)
|
||||||
self.setEasingCurve(QEasingCurve.InOutQuad)
|
self.setEasingCurve(QEasingCurve.OutQuad)
|
||||||
|
|
||||||
def setCameraTool(self, camera_tool):
|
def setCameraTool(self, camera_tool):
|
||||||
self._camera_tool = camera_tool
|
self._camera_tool = camera_tool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user