Skip to content
Snippets Groups Projects
Commit 866dcad5 authored by Vladimir Spivak(cwolf3d)'s avatar Vladimir Spivak(cwolf3d)
Browse files

Optimization of the interface. Removed an extra N panel with a strange name...

Optimization of the interface. Removed an extra N panel with a strange name "Create", buttons that are already in Add - Curve - Knots.
parent 3b8bae30
No related branches found
No related tags found
No related merge requests found
...@@ -943,37 +943,16 @@ def draw_spline_settings(self): ...@@ -943,37 +943,16 @@ def draw_spline_settings(self):
col.prop(self, "tilt") 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 # Register
# ------------------------------------------------------------ # ------------------------------------------------------------
def register(): def register():
bpy.utils.register_class(SplinePanel)
bpy.utils.register_class(SpiroFitSpline) bpy.utils.register_class(SpiroFitSpline)
bpy.utils.register_class(BounceSpline) bpy.utils.register_class(BounceSpline)
bpy.utils.register_class(CatenaryCurve) bpy.utils.register_class(CatenaryCurve)
def unregister(): def unregister():
bpy.utils.unregister_class(SplinePanel)
bpy.utils.unregister_class(SpiroFitSpline) bpy.utils.unregister_class(SpiroFitSpline)
bpy.utils.unregister_class(BounceSpline) bpy.utils.unregister_class(BounceSpline)
bpy.utils.unregister_class(CatenaryCurve) bpy.utils.unregister_class(CatenaryCurve)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment