diff options
Diffstat (limited to 'doc/python_api/examples')
-rw-r--r-- | doc/python_api/examples/gpu.types.GPUOffScreen.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |