Commit eae381b6 authored by Campbell Barton's avatar Campbell Barton
Browse files

object_animrenderbake: suppress errors registering

parent 26a8b2ea
...@@ -196,10 +196,9 @@ def register(): ...@@ -196,10 +196,9 @@ def register():
description="End frame of the animated bake", description="End frame of the animated bake",
default=250) default=250)
bpy.types.CYCLES_RENDER_PT_bake.prepend(draw)
cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_bake", None) cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_bake", None)
# if cycles_panel: if cycles_panel:
# cycles_panel.prepend(draw) cycles_panel.prepend(draw)
def unregister(): def unregister():
...@@ -207,7 +206,6 @@ def unregister(): ...@@ -207,7 +206,6 @@ def unregister():
del bpy.types.Scene.animrenderbake_start del bpy.types.Scene.animrenderbake_start
del bpy.types.Scene.animrenderbake_end del bpy.types.Scene.animrenderbake_end
bpy.types.CYCLES_RENDER_PT_bake.remove(draw)
cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_bake", None) cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_bake", None)
if cycles_panel: if cycles_panel:
cycles_panel.remove(draw) cycles_panel.remove(draw)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment