[Bf-extensions-cvs] [866dcad5] master: Optimization of the interface. Removed an extra N panel with a strange name "Create", buttons that are already in Add - Curve - Knots.

Vladimir Spivakcwolf3d noreply at git.blender.org
Sun Nov 29 01:03:09 CET 2020


Commit: 866dcad5aa6e45737f0634b835adcbc0871201e5
Author: Vladimir Spivak(cwolf3d)
Date:   Sun Nov 29 02:02:26 2020 +0200
Branches: master
https://developer.blender.org/rBA866dcad5aa6e45737f0634b835adcbc0871201e5

Optimization of the interface. Removed an extra N panel with a strange name "Create", buttons that are already in Add - Curve - Knots.

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

M	add_curve_extra_objects/add_curve_spirofit_bouncespline.py

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

diff --git a/add_curve_extra_objects/add_curve_spirofit_bouncespline.py b/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
index 764e4ff5..41b8a6b5 100644
--- a/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
+++ b/add_curve_extra_objects/add_curve_spirofit_bouncespline.py
@@ -943,37 +943,16 @@ def draw_spline_settings(self):
         col.prop(self, "tilt")
 
 
-# ------------------------------------------------------------
-# Spline Panel > VIEW_3D
-# ------------------------------------------------------------
-class SplinePanel(Panel):
-    bl_label = "Spline Generator"
-    bl_idname = "VIEW3D_PT_spirofit_spline"
-    bl_space_type = "VIEW_3D"
-    bl_region_type = "UI"
-    bl_context = "objectmode"
-    bl_category = "Create"
-    bl_options = {'DEFAULT_CLOSED'}
-
-    def draw(self, context):
-        col = self.layout.column(align=True)
-        col.operator(SpiroFitSpline.bl_idname, icon="CURVE_DATA")
-        col.operator(BounceSpline.bl_idname, icon="CURVE_DATA")
-        col.operator(CatenaryCurve.bl_idname, icon="CURVE_DATA")
-
-
 # ------------------------------------------------------------
 # Register
 # ------------------------------------------------------------
 def register():
-    bpy.utils.register_class(SplinePanel)
     bpy.utils.register_class(SpiroFitSpline)
     bpy.utils.register_class(BounceSpline)
     bpy.utils.register_class(CatenaryCurve)
 
 
 def unregister():
-    bpy.utils.unregister_class(SplinePanel)
     bpy.utils.unregister_class(SpiroFitSpline)
     bpy.utils.unregister_class(BounceSpline)
     bpy.utils.unregister_class(CatenaryCurve)



More information about the Bf-extensions-cvs mailing list