From dc31d3af94eef2d6f6bf645747b737606c9fcc34 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Wed, 8 Apr 2015 17:06:58 +0200 Subject: [PATCH] Start updating things to the new SceneNode API --- PrinterApplication.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PrinterApplication.py b/PrinterApplication.py index c7b71668d3..4372f01a5f 100644 --- a/PrinterApplication.py +++ b/PrinterApplication.py @@ -92,9 +92,9 @@ class PrinterApplication(QtApplication): self.getRenderer().setBackgroundColor(QColor(246, 246, 246)) camera = Camera('3d', root) - camera.translate(Vector(-150, 150, 300)) + camera.setPosition(Vector(-150, 150, 300)) camera.setPerspective(True) - camera.lookAt(Vector(0, 0, 0), Vector(0, 1, 0)) + camera.lookAt(Vector(0, 0, 0)) self._camera_animation = CameraAnimation() self._camera_animation.setCameraTool(self.getController().getTool('CameraTool'))