From 6ebe21164468fe231749bea29d5152493ea61d42 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 27 Sep 2018 09:41:18 +1000 Subject: Cleanup: pep8 --- doc/python_api/examples/gpu.types.GPUOffScreen.py | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'doc') diff --git a/doc/python_api/examples/gpu.types.GPUOffScreen.py b/doc/python_api/examples/gpu.types.GPUOffScreen.py index d927e393b96..aa9514d11b2 100644 --- a/doc/python_api/examples/gpu.types.GPUOffScreen.py +++ b/doc/python_api/examples/gpu.types.GPUOffScreen.py @@ -33,9 +33,9 @@ void main() g_plane_vertices = np.array([ ([-1.0, -1.0], [0.0, 0.0]), ([1.0, -1.0], [1.0, 0.0]), - ([1.0, 1.0], [1.0, 1.0]), - ([1.0, 1.0], [1.0, 1.0]), - ([-1.0, 1.0], [0.0, 1.0]), + ([1.0, 1.0], [1.0, 1.0]), + ([1.0, 1.0], [1.0, 1.0]), + ([-1.0, 1.0], [0.0, 1.0]), ([-1.0, -1.0], [0.0, 0.0]), ], [('pos', 'f4', 2), ('uv', 'f4', 2)]) @@ -162,20 +162,20 @@ class VIEW3D_OT_draw_offscreen(bpy.types.Operator): format = gpu.types.GPUVertFormat() pos_id = format.attr_add( - id="pos", - comp_type="F32", - len=2, - fetch_mode="FLOAT") + id="pos", + comp_type="F32", + len=2, + fetch_mode="FLOAT") uv_id = format.attr_add( - id="texCoord", - comp_type="F32", - len=2, - fetch_mode="FLOAT") + id="texCoord", + comp_type="F32", + len=2, + fetch_mode="FLOAT") vbo = gpu.types.GPUVertBuf( - len=len(g_plane_vertices), - format=format) + len=len(g_plane_vertices), + format=format) vbo.fill(id=pos_id, data=g_plane_vertices["pos"]) vbo.fill(id=uv_id, data=g_plane_vertices["uv"]) -- cgit v1.2.3