diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-18 18:13:44 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2019-04-18 18:13:44 +0300 |
commit | e47cb9ed5b5cc1a29efbd14de77177e08ba968aa (patch) | |
tree | 3f835812b87e45f1e812db9037aa89fa0da81d38 /render_povray/ui.py | |
parent | c56b463d06e6bd989019f2674775ec2cb511b823 (diff) |
Fix lots of various issues failing automated test load/unload/reload.
Diffstat (limited to 'render_povray/ui.py')
-rw-r--r-- | render_povray/ui.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/render_povray/ui.py b/render_povray/ui.py index fa677524..f9064e67 100644 --- a/render_povray/ui.py +++ b/render_povray/ui.py @@ -23,7 +23,7 @@ import sys #really import here and in render.py? import os #really import here and in render.py? from os.path import isfile from bl_operators.presets import AddPresetBase -from bpy.utils import register_class +from bpy.utils import register_class, unregister_class # Example of wrapping every class 'as is' from bl_ui import properties_output @@ -2412,9 +2412,6 @@ def register(): def unregister(): #from bpy.utils import unregister_class - for cls in classes: - unregister_class(cls) - #bpy.types.TEXTURE_PT_context_texture.remove(TEXTURE_PT_povray_type) #addon_utils.disable("add_mesh_extra_objects", default_set=False) #bpy.types.WORLD_PT_POV_world.remove(world_panel_func) @@ -2422,4 +2419,8 @@ def unregister(): bpy.types.RENDER_PT_povray_radiosity.remove(rad_panel_func) bpy.types.TEXT_MT_templates.remove(menu_func_templates) bpy.types.TOPBAR_MT_file_import.remove(menu_func_import) - bpy.types.VIEW3D_MT_add.remove(menu_func_add)
\ No newline at end of file + bpy.types.VIEW3D_MT_add.remove(menu_func_add) + + for cls in reversed(classes): + unregister_class(cls) + |