Update Python GPU example to latest depsgraph API
authorDalai Felinto <dfelinto@gmail.com>
Fri, 31 May 2019 14:30:38 +0000 (11:30 -0300)
committerDalai Felinto <dfelinto@gmail.com>
Fri, 31 May 2019 14:31:04 +0000 (11:31 -0300)
doc/python_api/examples/gpu.10.py

index 6e7a3f6db6f94727244e402e2576628a4d406691..a4db576ecc01309d5255f57bab9fe59a2ce83256 100644 (file)
@@ -24,7 +24,7 @@ def draw():
     view_matrix = scene.camera.matrix_world.inverted()
 
     projection_matrix = scene.camera.calc_matrix_camera(
-        context.depsgraph, x=WIDTH, y=HEIGHT)
+        context.evaluated_depsgraph_get(), x=WIDTH, y=HEIGHT)
 
     offscreen.draw_view3d(
         scene,