[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [24109] trunk/blender/release/scripts/ui/ space_view3d_toolbar.py: Added missing X mirror option to armature edit mode.

William Reynish william at reynish.com
Tue Oct 27 13:46:21 CET 2009


Revision: 24109
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=24109
Author:   billrey
Date:     2009-10-27 13:46:20 +0100 (Tue, 27 Oct 2009)

Log Message:
-----------
Added missing X mirror option to armature edit mode.

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_view3d_toolbar.py

Modified: trunk/blender/release/scripts/ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/ui/space_view3d_toolbar.py	2009-10-27 11:46:46 UTC (rev 24108)
+++ trunk/blender/release/scripts/ui/space_view3d_toolbar.py	2009-10-27 12:46:20 UTC (rev 24109)
@@ -67,12 +67,12 @@
 		
 		col = layout.column(align=True)
 		col.itemL(text="Mesh:")
-		col.itemO("mesh.duplicate_move")
+		col.itemO("mesh.duplicate")
 		col.itemO("mesh.delete")
 		
 		col = layout.column(align=True)
 		col.itemL(text="Modeling:")
-		col.itemO("mesh.extrude_move")
+		col.itemO("mesh.extrude")
 		col.itemO("mesh.subdivide")
 		col.itemO("mesh.loopcut")
 		col.itemO("mesh.spin")
@@ -245,12 +245,12 @@
 		col = layout.column(align=True)
 		col.itemL(text="Bones:")
 		col.itemO("armature.bone_primitive_add", text="Add")
-		col.itemO("armature.duplicate_move", text="Duplicate")
+		col.itemO("armature.duplicate", text="Duplicate")
 		col.itemO("armature.delete", text="Delete")
 		
 		col = layout.column(align=True)
 		col.itemL(text="Modeling:")
-		col.itemO("armature.extrude_move")
+		col.itemO("armature.extrude")
 		
 		col = layout.column(align=True)
 		col.itemL(text="Grease Pencil:")
@@ -383,7 +383,19 @@
 		col = layout.column(align=True)
 		col.itemR(arm, "x_axis_mirror")
 		col.itemR(arm, "auto_ik")
+		
+class VIEW3D_PT_tools_armatureedit_options(View3DPanel):
+	__context__ = "armature_edit"
+	__label__ = "Armature Options"
 
+	def draw(self, context):
+		layout = self.layout
+		
+		arm = context.active_object.data
+
+		col = layout.column(align=True)
+		col.itemR(arm, "x_axis_mirror")
+
 # ********** default tools for paint modes ****************
 
 class PaintPanel(bpy.types.Panel):
@@ -830,6 +842,7 @@
 bpy.types.register(VIEW3D_PT_tools_surfaceedit)
 bpy.types.register(VIEW3D_PT_tools_textedit)
 bpy.types.register(VIEW3D_PT_tools_armatureedit)
+bpy.types.register(VIEW3D_PT_tools_armatureedit_options)
 bpy.types.register(VIEW3D_PT_tools_mballedit)
 bpy.types.register(VIEW3D_PT_tools_latticeedit)
 bpy.types.register(VIEW3D_PT_tools_posemode)





More information about the Bf-blender-cvs mailing list