[Bf-blender-cvs] [a1c5653] temp-curve-draw: UI: improve layou

Campbell Barton noreply at git.blender.org
Thu Apr 14 22:46:06 CEST 2016


Commit: a1c56535bec05bd769efc666670c80d8a36ea6fc
Author: Campbell Barton
Date:   Fri Apr 15 06:34:16 2016 +1000
Branches: temp-curve-draw
https://developer.blender.org/rBa1c56535bec05bd769efc666670c80d8a36ea6fc

UI: improve layou

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 839d5fb..4131254 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -556,17 +556,20 @@ class VIEW3D_PT_tools_curveedit_options_stroke(View3DPanel, Panel):
         layout = self.layout
 
         tool_settings = context.tool_settings
+        cps = tool_settings.curve_paint_settings
 
         col = layout.column()
 
-        cps = tool_settings.curve_paint_settings
         col.prop(cps, "curve_type")
-        col.prop(cps, "error_threshold")
-        col.prop(cps, "use_corners_detect")
 
-        col = layout.column()
-        col.active = cps.use_corners_detect
-        col.prop(cps, "corner_angle")
+        if cps.curve_type == 'BEZIER':
+            col.label("Bezier Options:")
+            col.prop(cps, "error_threshold")
+            col.prop(cps, "use_corners_detect")
+
+            col = layout.column()
+            col.active = cps.use_corners_detect
+            col.prop(cps, "corner_angle")
 
         col.label("Radius/Pressure:")
         row = layout.row(align=True)
@@ -581,6 +584,7 @@ class VIEW3D_PT_tools_curveedit_options_stroke(View3DPanel, Panel):
         row.prop(cps, "use_pressure_radius", text="", icon_only=True)
 
         col = layout.column()
+        col.label("Projection/Depth:")
         row = layout.row(align=True)
         row.prop(cps, "depth_mode", expand=True)




More information about the Bf-blender-cvs mailing list