Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-04-02 01:37:40 +0400
committerThomas Dinges <blender@dingto.org>2011-04-02 01:37:40 +0400
commitc729c1a9970b981611015bc07e3b77cd21601c44 (patch)
tree17d75ea8a658df6ac96cbe4c1725d7d3ced19865 /release/scripts
parent485229b7db0888e8f6e504ee41f159bd45fd42a9 (diff)
3D View Toolbar:
* Code cleanup
Diffstat (limited to 'release/scripts')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py29
1 files changed, 7 insertions, 22 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index a4b3b9a5f21..e70395efa84 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -331,12 +331,9 @@ class VIEW3D_PT_tools_armatureedit_options(View3DPanel, bpy.types.Panel):
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 @@ class VIEW3D_PT_tools_posemode_options(View3DPanel, bpy.types.Panel):
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 @@ class VIEW3D_PT_tools_brush_tool(PaintPanel, bpy.types.Panel):
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 @@ class VIEW3D_PT_sculpt_symmetry(PaintPanel, bpy.types.Panel):
return (context.sculpt_object and context.tool_settings.sculpt)
def draw(self, context):
-
layout = self.layout
sculpt = context.tool_settings.sculpt
@@ -995,21 +985,16 @@ class VIEW3D_PT_sculpt_symmetry(PaintPanel, bpy.types.Panel):
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()
-
- col.prop(sculpt, "radial_symmetry", text="Radial")
-
- col = layout.column()
+ split.prop(sculpt, "radial_symmetry", text="Radial")
- col.separator()
+ layout.separator()
- col.prop(sculpt, "use_symmetry_feather", text="Feather")
+ layout.prop(sculpt, "use_symmetry_feather", text="Feather")
class VIEW3D_PT_tools_brush_appearance(PaintPanel, bpy.types.Panel):
@@ -1215,10 +1200,10 @@ class VIEW3D_PT_imagepaint_options(PaintPanel):
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")