[Bf-blender-cvs] [a3020d55583] blender2.8: Fixup for gpu.types.GPUOffscreen.py example
Dalai Felinto
noreply at git.blender.org
Fri Sep 21 18:36:00 CEST 2018
Commit: a3020d5558322e8839e3f24039147baf7ef8c0dd
Author: Dalai Felinto
Date: Fri Sep 21 13:34:38 2018 -0300
Branches: blender2.8
https://developer.blender.org/rBa3020d5558322e8839e3f24039147baf7ef8c0dd
Fixup for gpu.types.GPUOffscreen.py example
Addressing the changes introduced on: 43fa51835adee390aa4bcb9fe3bda1034480b7cf
===================================================================
M doc/python_api/examples/gpu.types.GPUOffScreen.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list