[Bf-blender-cvs] [c1bdf69] master: Update tabs for non-mesh object types
Jonathan Williamson
noreply at git.blender.org
Sun Feb 2 18:41:00 CET 2014
Commit: c1bdf69805c8704988260d84031bff8b37631e06
Author: Jonathan Williamson
Date: Sun Feb 2 11:31:24 2014 -0600
https://developer.blender.org/rBc1bdf69805c8704988260d84031bff8b37631e06
Update tabs for non-mesh object types
This adds appropriate tabs, panels, etc for curves, surfaces, metaballs, text, and armatures. This brings it in line with the changes in rB0972c422c3ac4ed725414baa47838f833b3f4c90
===================================================================
M release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 97d82c4..2d1185f 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -438,15 +438,15 @@ class VIEW3D_PT_tools_add_curve_edit(View3DPanel, Panel):
col.operator("curve.primitive_nurbs_circle_add", text="Nurbs Circle", icon="CURVE_NCIRCLE")
col.operator("curve.primitive_nurbs_path_add", text="Nurbs Path" , icon="CURVE_PATH")
-class VIEW3D_PT_tools_curveedit(View3DPanel, Panel):
+class VIEW3D_PT_tools_transform_curve(View3DPanel, Panel):
+ bl_category = "Tools"
bl_context = "curve_edit"
- bl_label = "Curve Tools"
+ bl_label = "Transform"
def draw(self, context):
layout = self.layout
col = layout.column(align=True)
- col.label(text="Transform:")
col.operator("transform.translate")
col.operator("transform.rotate")
col.operator("transform.resize", text="Scale")
@@ -455,6 +455,14 @@ class VIEW3D_PT_tools_curveedit(View3DPanel, Panel):
col.operator("transform.tilt", text="Tilt")
col.operator("transform.transform", text="Scale Feather").mode = 'CURVE_SHRINKFATTEN'
+class VIEW3D_PT_tools_curveedit(View3DPanel, Panel):
+ bl_category = "Tools"
+ bl_context = "curve_edit"
+ bl_label = "Curve Tools"
+
+ def draw(self, context):
+ layout = self.layout
+
col = layout.column(align=True)
col.label(text="Curve:")
col.operator("curve.duplicate_move", text="Duplicate")
@@ -488,20 +496,27 @@ class VIEW3D_PT_tools_curveedit(View3DPanel, Panel):
# ********** default tools for editmode_surface ****************
-
-class VIEW3D_PT_tools_surfaceedit(View3DPanel, Panel):
+class VIEW3D_PT_tools_transform_surface(View3DPanel, Panel):
+ bl_category = "Tools"
bl_context = "surface_edit"
- bl_label = "Surface Tools"
+ bl_label = "Transform"
def draw(self, context):
layout = self.layout
col = layout.column(align=True)
- col.label(text="Transform:")
col.operator("transform.translate")
col.operator("transform.rotate")
col.operator("transform.resize", text="Scale")
+class VIEW3D_PT_tools_surfaceedit(View3DPanel, Panel):
+ bl_category = "Tools"
+ bl_context = "surface_edit"
+ bl_label = "Surface Tools"
+
+ def draw(self, context):
+ layout = self.layout
+
col = layout.column(align=True)
col.label(text="Curve:")
col.operator("curve.duplicate_move", text="Duplicate")
@@ -522,6 +537,7 @@ class VIEW3D_PT_tools_surfaceedit(View3DPanel, Panel):
class VIEW3D_PT_tools_textedit(View3DPanel, Panel):
+ bl_category = "Tools"
bl_context = "text_edit"
bl_label = "Text Tools"
@@ -587,6 +603,7 @@ class VIEW3D_PT_tools_armatureedit_options(View3DPanel, Panel):
class VIEW3D_PT_tools_mballedit(View3DPanel, Panel):
+ bl_category = "Tools"
bl_context = "mball_edit"
bl_label = "Meta Tools"
@@ -607,6 +624,7 @@ class VIEW3D_PT_tools_mballedit(View3DPanel, Panel):
class VIEW3D_PT_tools_latticeedit(View3DPanel, Panel):
+ bl_category = "Tools"
bl_context = "lattice_edit"
bl_label = "Lattice Tools"
@@ -631,6 +649,7 @@ class VIEW3D_PT_tools_latticeedit(View3DPanel, Panel):
class VIEW3D_PT_tools_posemode(View3DPanel, Panel):
+ bl_category = "Tools"
bl_context = "posemode"
bl_label = "Pose Tools"
@@ -673,6 +692,7 @@ class VIEW3D_PT_tools_posemode(View3DPanel, Panel):
class VIEW3D_PT_tools_posemode_options(View3DPanel, Panel):
+ bl_category = "Options"
bl_context = "posemode"
bl_label = "Pose Options"
More information about the Bf-blender-cvs
mailing list