Fixup for gpu.types.GPUOffscreen.py example

Addressing the changes introduced on: 43fa51835a
This commit is contained in:
Dalai Felinto 2018-09-21 13:34:38 -03:00
parent 2ece296d4f
commit a3020d5558
1 changed files with 2 additions and 0 deletions

View File

@ -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