[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35947] trunk/blender/release/scripts/ startup/bl_ui/space_view3d_toolbar.py: 3D View Toolbar:

Thomas Dinges blender at dingto.org
Fri Apr 1 23:37:40 CEST 2011


Revision: 35947
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35947
Author:   dingto
Date:     2011-04-01 21:37:40 +0000 (Fri, 01 Apr 2011)
Log Message:
-----------
3D View Toolbar:
* Code cleanup

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

Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py	2011-04-01 21:22:19 UTC (rev 35946)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d_toolbar.py	2011-04-01 21:37:40 UTC (rev 35947)
@@ -331,12 +331,9 @@
     bl_label = "Armature Options"
 
     def draw(self, context):
-        layout = self.layout
-
         arm = context.active_object.data
 
-        col = layout.column(align=True)
-        col.prop(arm, "use_mirror_x")
+        self.layout.prop(arm, "use_mirror_x")
 
 # ********** default tools for editmode_mball ****************
 
@@ -431,12 +428,9 @@
     bl_label = "Pose Options"
 
     def draw(self, context):
-        layout = self.layout
-
         arm = context.active_object.data
 
-        col = layout.column(align=True)
-        col.prop(arm, "use_auto_ik")
+        self.layout.prop(arm, "use_auto_ik")
 
 # ********** default tools for paint modes ****************
 
@@ -795,9 +789,6 @@
 
         settings = __class__.paint_settings(context)
         brush = settings.brush
-        ## Unused
-        # image_paint = context.image_paint_object
-        # sculpt = context.sculpt_object
 
         col = layout.column(align=True)
 
@@ -986,7 +977,6 @@
         return (context.sculpt_object and context.tool_settings.sculpt)
 
     def draw(self, context):
-
         layout = self.layout
 
         sculpt = context.tool_settings.sculpt
@@ -995,23 +985,18 @@
         split = layout.split()
 
         col = split.column()
-
         col.label(text="Mirror:")
         col.prop(sculpt, "use_symmetry_x", text="X")
         col.prop(sculpt, "use_symmetry_y", text="Y")
         col.prop(sculpt, "use_symmetry_z", text="Z")
 
-        col = split.column()
+        split.prop(sculpt, "radial_symmetry", text="Radial")
 
-        col.prop(sculpt, "radial_symmetry", text="Radial")
+        layout.separator()
 
-        col = layout.column()
+        layout.prop(sculpt, "use_symmetry_feather", text="Feather")
 
-        col.separator()
 
-        col.prop(sculpt, "use_symmetry_feather", text="Feather")
-
-
 class VIEW3D_PT_tools_brush_appearance(PaintPanel, bpy.types.Panel):
     bl_label = "Appearance"
     bl_options = {'DEFAULT_CLOSED'}
@@ -1215,10 +1200,10 @@
 
     def draw(self, context):
         layout = self.layout
+        
+        tool_settings = context.tool_settings
 
         col = layout.column()
-
-        tool_settings = context.tool_settings
         col.label(text="Unified Settings:")
         col.prop(tool_settings, "sculpt_paint_use_unified_size", text="Size")
         col.prop(tool_settings, "sculpt_paint_use_unified_strength", text="Strength")




More information about the Bf-blender-cvs mailing list