Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Ha <j.ha@ultimaker.com>2017-02-22 13:33:55 +0300
committerJack Ha <j.ha@ultimaker.com>2017-02-22 13:33:55 +0300
commite97d75b7c8f92a62860f3e28724cea18c6b8629d (patch)
treea7e141e323a1f2ae692b814f86917563c49cdc5f /cura/CameraAnimation.py
parentc785256ac48227f3788cd18b1e322ad0f87ab44b (diff)
Added logging for camera animation. Help debugging CURA-3334
Diffstat (limited to 'cura/CameraAnimation.py')
-rw-r--r--cura/CameraAnimation.py4
1 files changed, 4 insertions, 0 deletions
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):