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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'doc/python_api/examples/gpu.types.GPUOffScreen.py')
-rw-r--r--doc/python_api/examples/gpu.types.GPUOffScreen.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/gpu.types.GPUOffScreen.py b/doc/python_api/examples/gpu.types.GPUOffScreen.py
index ee0b6759f13..ac95c75bf6c 100644
--- a/doc/python_api/examples/gpu.types.GPUOffScreen.py
+++ b/doc/python_api/examples/gpu.types.GPUOffScreen.py
@@ -97,7 +97,7 @@ class VIEW3D_OT_draw_offscreen(bpy.types.Operator):
render = scene.render
camera = scene.camera
- modelview_matrix = camera.matrix_world.inverted()
+ view_matrix = camera.matrix_world.inverted()
projection_matrix = camera.calc_matrix_camera(
context.depsgraph,
x=render.resolution_x,
@@ -112,7 +112,7 @@ class VIEW3D_OT_draw_offscreen(bpy.types.Operator):
context.space_data,
context.region,
projection_matrix,
- modelview_matrix,
+ view_matrix,
)
def _opengl_draw(self, context, texture, aspect_ratio, scale):