Skip to content

Commit

Permalink
__init__ での登録にて、script.reroad で再読込すると、CYCLES_RENDER_PT_bakeが見つからないという…
Browse files Browse the repository at this point in the history
…エラーが出るので、ここのみ事前確認するようにした
  • Loading branch information
bookyakuno committed Sep 8, 2020
1 parent 5050bd1 commit 3a533bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,8 @@ def unregister():
PROPERTIES_HT_header.unregister()
bpy.types.PROPERTIES_HT_header.remove(PROPERTIES_HT_header.menu)
RENDER_PT_bake.unregister()
bpy.types.CYCLES_RENDER_PT_bake.remove(RENDER_PT_bake.menu)
if hasattr(bpy.types, "CYCLES_RENDER_PT_bake"): # script.reroad で再読込すると、CYCLES_RENDER_PT_bakeが見つからないというエラーが出るので、とりあえずエラー文をスルー
bpy.types.CYCLES_RENDER_PT_bake.remove(RENDER_PT_bake.menu)
RENDER_PT_render.unregister()
bpy.types.RENDER_PT_context.remove(RENDER_PT_render.menu)
SCENE_PT_rigid_body_world.unregister()
Expand Down

0 comments on commit 3a533bc

Please sign in to comment.