From a3020d5558322e8839e3f24039147baf7ef8c0dd Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Fri, 21 Sep 2018 13:34:38 -0300 Subject: Fixup for gpu.types.GPUOffscreen.py example Addressing the changes introduced on: 43fa51835adee390aa4bcb9fe3bda1034480b7cf --- doc/python_api/examples/gpu.types.GPUOffScreen.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/python_api/examples/gpu.types.GPUOffScreen.py b/doc/python_api/examples/gpu.types.GPUOffScreen.py index 66fab23b110..d927e393b96 100644 --- a/doc/python_api/examples/gpu.types.GPUOffScreen.py +++ b/doc/python_api/examples/gpu.types.GPUOffScreen.py @@ -256,6 +256,8 @@ if __name__ == "__main__": try: unregister() except RuntimeError: + pass + else: if hasattr(bpy.types, "VIEW3D_OT_draw_offscreen"): del bpy.types.VIEW3D_OT_draw_offscreen.global_shader -- cgit v1.2.3