From e97d75b7c8f92a62860f3e28724cea18c6b8629d Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Wed, 22 Feb 2017 11:33:55 +0100 Subject: [PATCH] Added logging for camera animation. Help debugging CURA-3334 --- cura/CameraAnimation.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/CameraAnimation.py b/cura/CameraAnimation.py index e31cbb93a4..e244cf5c70 100644 --- a/cura/CameraAnimation.py +++ b/cura/CameraAnimation.py @@ -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):