mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
Start updating things to the new SceneNode API
This commit is contained in:
parent
ec1500860f
commit
dc31d3af94
1 changed files with 2 additions and 2 deletions
|
@ -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'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue