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.offscreen.1.py')
-rw-r--r--doc/python_api/examples/gpu.offscreen.1.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/doc/python_api/examples/gpu.offscreen.1.py b/doc/python_api/examples/gpu.offscreen.1.py
index ff1a7ad7cce..bb34603bd23 100644
--- a/doc/python_api/examples/gpu.offscreen.1.py
+++ b/doc/python_api/examples/gpu.offscreen.1.py
@@ -23,9 +23,9 @@ class OffScreenDraw(bpy.types.Operator):
@staticmethod
def handle_add(self, context):
OffScreenDraw._handle_draw = bpy.types.SpaceView3D.draw_handler_add(
- self.draw_callback_px, (self, context),
- 'WINDOW', 'POST_PIXEL',
- )
+ self.draw_callback_px, (self, context),
+ 'WINDOW', 'POST_PIXEL',
+ )
@staticmethod
def handle_remove():
@@ -58,20 +58,20 @@ class OffScreenDraw(bpy.types.Operator):
modelview_matrix = camera.matrix_world.inverted()
projection_matrix = camera.calc_matrix_camera(
- render.resolution_x,
- render.resolution_y,
- render.pixel_aspect_x,
- render.pixel_aspect_y,
- )
+ render.resolution_x,
+ render.resolution_y,
+ render.pixel_aspect_x,
+ render.pixel_aspect_y,
+ )
offscreen.draw_view3d(
- scene,
- render_layer,
- context.space_data,
- context.region,
- projection_matrix,
- modelview_matrix,
- )
+ scene,
+ render_layer,
+ context.space_data,
+ context.region,
+ projection_matrix,
+ modelview_matrix,
+ )
@staticmethod
def _opengl_draw(context, texture, aspect_ratio, scale):