diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-07-20 20:39:16 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-07-20 20:39:16 +0400 |
commit | 587d408f611757684015270448e87e16e1d8a140 (patch) | |
tree | d1f09b1ff82091df3807e57423d0624aeaf80c91 /release/ui/space_view3d.py | |
parent | 33bfd7397b8b0031bd2cf46d2037a8da4ef40888 (diff) |
patch from William
Cleaned up force fields panel, as well as the other fixes (sculpt, lamps)
Diffstat (limited to 'release/ui/space_view3d.py')
-rw-r--r-- | release/ui/space_view3d.py | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/release/ui/space_view3d.py b/release/ui/space_view3d.py index 9d4994b9793..e28fdd6641f 100644 --- a/release/ui/space_view3d.py +++ b/release/ui/space_view3d.py @@ -170,85 +170,11 @@ class VIEW3D_PT_background_image(bpy.types.Panel): col.itemR(bg, "x_offset", text="X") col.itemR(bg, "y_offset", text="Y") -class VIEW3D_PT_sculpt(bpy.types.Panel): - __space_type__ = "VIEW_3D" - __region_type__ = "UI" - __label__ = "Sculpt" - - def poll(self, context): - return context.sculpt_object - - def draw(self, context): - sculpt = context.scene.tool_settings.sculpt - - split = self.layout.split() - - col = split.column() - col.itemL(text="Symmetry") - row = col.row(align=True) - row.itemR(sculpt, "symmetry_x", text="X", toggle=True) - row.itemR(sculpt, "symmetry_y", text="Y", toggle=True) - row.itemR(sculpt, "symmetry_z", text="Z", toggle=True) - - col = split.column() - col.itemL(text="Lock Axis") - row = col.row(align=True) - row.itemR(sculpt, "lock_x", text="X", toggle=True) - row.itemR(sculpt, "lock_y", text="Y", toggle=True) - row.itemR(sculpt, "lock_z", text="Z", toggle=True) - -class VIEW3D_PT_brush(bpy.types.Panel): - __space_type__ = "VIEW_3D" - __region_type__ = "UI" - __label__ = "Brush" - - def brush_src(self, context): - ts = context.scene.tool_settings - if context.sculpt_object: - return ts.sculpt - elif context.vpaint_object: - return ts.vpaint - elif context.wpaint_object: - return ts.wpaint - return False - def poll(self, context): - return self.brush_src(context) - - def draw(self, context): - src = self.brush_src(context) - brush = src.brush - layout = self.layout - - layout.split().row().template_ID(src, "brush") - - split = layout.split() - col = split.column(align=True) - col.itemR(brush, "size", slider=True) - if context.wpaint_object: - col.itemR(context.scene.tool_settings, "vertex_group_weight", text="Weight", slider=True) - col.itemR(brush, "strength", slider=True) - - if context.sculpt_object: - layout.split().row().itemR(brush, "sculpt_tool") - - split = layout.split() - col = split.column() - col.itemR(brush, "airbrush") - col.itemR(brush, "anchored") - col.itemR(brush, "rake") - col = split.column() - col.itemR(brush, "space") - col.itemR(brush, "spacing") - - split = layout.split() - split.template_curve_mapping(brush.curve) bpy.types.register(VIEW3D_MT_view_navigation) bpy.types.register(VIEW3D_MT_view) bpy.types.register(VIEW3D_HT_header) -bpy.types.register(VIEW3D_PT_sculpt) -bpy.types.register(VIEW3D_PT_brush) bpy.types.register(VIEW3D_PT_3dview_properties) bpy.types.register(VIEW3D_PT_3dview_display) bpy.types.register(VIEW3D_PT_background_image) |