[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [55580] branches/soc-2008-mxcurioni/ release/scripts/startup/bl_ui/space_view3d.py: Fix for truncated labels in the 3D View properties panel.

Tamito Kajiyama rd6t-kjym at asahi-net.or.jp
Tue Mar 26 01:32:20 CET 2013


Revision: 55580
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=55580
Author:   kjym3
Date:     2013-03-26 00:32:19 +0000 (Tue, 26 Mar 2013)
Log Message:
-----------
Fix for truncated labels in the 3D View properties panel.
Suggested by Bastien Montagne and IRIE Shinsuke through a code review of the branch.

Modified Paths:
--------------
    branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/space_view3d.py

Modified: branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/space_view3d.py
===================================================================
--- branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/space_view3d.py	2013-03-26 00:29:57 UTC (rev 55579)
+++ branches/soc-2008-mxcurioni/release/scripts/startup/bl_ui/space_view3d.py	2013-03-26 00:32:19 UTC (rev 55580)
@@ -2547,21 +2547,25 @@
 
         split = layout.split()
 
+        with_freestyle = context.scene and bpy.app.build_options.freestyle
+
         col = split.column()
         col.label(text="Overlays:")
         col.prop(mesh, "show_faces", text="Faces")
         col.prop(mesh, "show_edges", text="Edges")
         col.prop(mesh, "show_edge_crease", text="Creases")
+        if with_freestyle:
+            col.prop(mesh, "show_edge_seams", text="Seams")
 
         col = split.column()
         col.label()
-        col.prop(mesh, "show_edge_seams", text="Seams")
+        if not with_freestyle:
+            col.prop(mesh, "show_edge_seams", text="Seams")
         col.prop(mesh, "show_edge_sharp", text="Sharp")
         col.prop(mesh, "show_edge_bevel_weight", text="Weights")
-
-        if context.scene and bpy.app.build_options.freestyle:
-            col.prop(mesh, "show_freestyle_edge_marks", text="Freestyle Edge Marks")
-            col.prop(mesh, "show_freestyle_face_marks", text="Freestyle Face Marks")
+        if with_freestyle:
+            col.prop(mesh, "show_freestyle_edge_marks", text="Edge Marks")
+            col.prop(mesh, "show_freestyle_face_marks", text="Face Marks")
         
         col = layout.column()
 




More information about the Bf-blender-cvs mailing list