Start updating things to the new SceneNode API

This commit is contained in:
Arjen Hiemstra 2015-04-08 17:06:58 +02:00
parent ec1500860f
commit dc31d3af94

View file

@ -92,9 +92,9 @@ class PrinterApplication(QtApplication):
self.getRenderer().setBackgroundColor(QColor(246, 246, 246)) self.getRenderer().setBackgroundColor(QColor(246, 246, 246))
camera = Camera('3d', root) camera = Camera('3d', root)
camera.translate(Vector(-150, 150, 300)) camera.setPosition(Vector(-150, 150, 300))
camera.setPerspective(True) 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 = CameraAnimation()
self._camera_animation.setCameraTool(self.getController().getTool('CameraTool')) self._camera_animation.setCameraTool(self.getController().getTool('CameraTool'))