diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2018-11-09 18:46:09 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2018-11-09 18:54:38 +0300 |
commit | 49a7bcafd9e043ae250f0e50c54d2dec716a7191 (patch) | |
tree | 763e5699c83990e07344cb619620c69e6f4ad27f /doc/python_api | |
parent | 6cb5340e013faac27bbb3dc944c9c6087fe63554 (diff) |
gpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrix
Technically this is only the view matrix, not model view matrix.
And view layer was missing from the pydoc.
Diffstat (limited to 'doc/python_api')
-rw-r--r-- | doc/python_api/examples/gpu.types.GPUOffScreen.py | 4 |
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): |