From a95d8d5ecee68830007b62fbbd4c948b886a8e21 Mon Sep 17 00:00:00 2001 From: "Spivak Vladimir (cwolf3d)" Date: Fri, 13 Sep 2019 18:32:25 +0300 Subject: Addon: BSurfaces: Fixed unregister panel error --- mesh_bsurfaces.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mesh_bsurfaces.py b/mesh_bsurfaces.py index 90caee2c..7a76dba2 100644 --- a/mesh_bsurfaces.py +++ b/mesh_bsurfaces.py @@ -4226,11 +4226,17 @@ classes = ( def register(): for cls in classes: bpy.utils.register_class(cls) + + for panel in panels: + bpy.utils.register_class(panel) bpy.types.Scene.bsurfaces = PointerProperty(type=BsurfacesProps) update_panel(None, bpy.context) def unregister(): + for panel in panels: + bpy.utils.unregister_class(panel) + for cls in classes: bpy.utils.unregister_class(cls) -- cgit v1.2.3