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:
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py28
1 files changed, 17 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 96201a4b960..332577a7902 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -172,25 +172,31 @@ class VIEW3D_PT_tools_meshedit(View3DPanel, Panel):
class VIEW3D_PT_tools_meshedit_options(View3DPanel, Panel):
bl_context = "mesh_edit"
bl_label = "Mesh Options"
+
+ @classmethod
+ def poll(cls, context):
+ return context.active_object
def draw(self, context):
layout = self.layout
ob = context.active_object
- if ob:
- mesh = ob.data
- col = layout.column(align=True)
- col.prop(mesh, "use_mirror_x")
- sub = col.column()
- sub.active = ob.data.use_mirror_x
- sub.prop(mesh, "use_mirror_topology")
+ tool_settings = context.tool_settings
+ mesh = ob.data
- ts = context.tool_settings
+ col = layout.column(align=True)
+ col.active = tool_settings.proportional_edit == 'DISABLED'
+ col.prop(mesh, "use_mirror_x")
- col.label("Edge Select Mode")
- col.prop(ts, "edge_path_mode", text="")
- col.prop(context.tool_settings, "edge_path_live_unwrap")
+ row = col.row()
+ row.active = ob.data.use_mirror_x
+ row.prop(mesh, "use_mirror_topology")
+
+ col = layout.column(align=True)
+ col.label("Edge Select Mode:")
+ col.prop(tool_settings, "edge_path_mode", text="")
+ col.prop(tool_settings, "edge_path_live_unwrap")
# ********** default tools for editmode_curve ****************