Fixup for gpu.types.GPUOffscreen.py example
Addressing the changes introduced on: 43fa51835a
This commit is contained in:
@@ -256,6 +256,8 @@ if __name__ == "__main__":
|
|||||||
try:
|
try:
|
||||||
unregister()
|
unregister()
|
||||||
except RuntimeError:
|
except RuntimeError:
|
||||||
|
pass
|
||||||
|
else:
|
||||||
if hasattr(bpy.types, "VIEW3D_OT_draw_offscreen"):
|
if hasattr(bpy.types, "VIEW3D_OT_draw_offscreen"):
|
||||||
del bpy.types.VIEW3D_OT_draw_offscreen.global_shader
|
del bpy.types.VIEW3D_OT_draw_offscreen.global_shader
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user