mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-20 05:07:50 -06:00
Added logging for camera animation. Help debugging CURA-3334
This commit is contained in:
parent
c785256ac4
commit
e97d75b7c8
1 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,8 @@ from PyQt5.QtCore import QVariantAnimation, QEasingCurve
|
|||
from PyQt5.QtGui import QVector3D
|
||||
|
||||
from UM.Math.Vector import Vector
|
||||
from UM.Logger import Logger
|
||||
|
||||
|
||||
class CameraAnimation(QVariantAnimation):
|
||||
def __init__(self, parent = None):
|
||||
|
@ -18,9 +20,11 @@ class CameraAnimation(QVariantAnimation):
|
|||
self._camera_tool = camera_tool
|
||||
|
||||
def setStart(self, start):
|
||||
Logger.log("d", "Camera start: %s %s %s" % (start.x, start.y, start.z))
|
||||
self.setStartValue(QVector3D(start.x, start.y, start.z))
|
||||
|
||||
def setTarget(self, target):
|
||||
Logger.log("d", "Camera end: %s %s %s" % (target.x, target.y, target.z))
|
||||
self.setEndValue(QVector3D(target.x, target.y, target.z))
|
||||
|
||||
def updateCurrentValue(self, value):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue