Update for renamed cycles classes

This commit is contained in:
Campbell Barton 2017-09-01 16:10:55 +10:00
parent 3a94eba6d4
commit 6b237f8703
2 changed files with 4 additions and 4 deletions

View File

@ -192,7 +192,7 @@ def register():
default=250)
bpy.types.RENDER_PT_bake.prepend(draw)
cycles_panel = getattr(bpy.types, "CyclesRender_PT_bake", None)
cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_bake", None)
if cycles_panel:
cycles_panel.prepend(draw)
@ -205,7 +205,7 @@ def unregister():
del bpy.types.Scene.animrenderbake_end
bpy.types.RENDER_PT_bake.remove(draw)
cycles_panel = getattr(bpy.types, "CyclesRender_PT_bake", None)
cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_bake", None)
if cycles_panel:
cycles_panel.remove(draw)

View File

@ -475,7 +475,7 @@ def register():
# Note, the Cycles addon must be registered first, otherwise
# this panel doesn't exist - better be safe here!
cycles_panel = getattr(bpy.types, "CyclesRender_PT_performance", None)
cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_performance", None)
if cycles_panel is not None:
cycles_panel.append(menu_func_cycles)
@ -487,7 +487,7 @@ def unregister():
bpy.app.handlers.scene_update_post.remove(on_scene_update)
bpy.types.RENDER_PT_performance.remove(menu_func_bi)
cycles_panel = getattr(bpy.types, "CyclesRender_PT_performance", None)
cycles_panel = getattr(bpy.types, "CYCLES_RENDER_PT_performance", None)
if cycles_panel is not None:
cycles_panel.remove(menu_func_cycles)