[Bf-extensions-cvs] [a95d8d5e] master: Addon: BSurfaces: Fixed unregister panel error

Spivak Vladimir cwolf3d noreply at git.blender.org
Fri Sep 13 17:32:54 CEST 2019


Commit: a95d8d5ecee68830007b62fbbd4c948b886a8e21
Author: Spivak Vladimir (cwolf3d)
Date:   Fri Sep 13 18:32:25 2019 +0300
Branches: master
https://developer.blender.org/rBAa95d8d5ecee68830007b62fbbd4c948b886a8e21

Addon: BSurfaces: Fixed unregister panel error

===================================================================

M	mesh_bsurfaces.py

===================================================================

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)



More information about the Bf-extensions-cvs mailing list