Bevel Factor Mapping
[blender.git] / release / scripts / startup / bl_ui / properties_data_curve.py
index 8a3e31d830881b898b89441257d673d668cebb23..acfc4d1e2638235e95e71ebc5b24f50097f1cf49 100644 (file)
@@ -183,13 +183,22 @@ class DATA_PT_geometry_curve(CurveButtonsPanelCurve, Panel):
         col.prop(curve, "bevel_object", text="")
 
         col = layout.column(align=True)
-        col.prop(curve, "bevel_factor_start")
-        col.prop(curve, "bevel_factor_end")
-
         row = col.row()
-        row.active = (curve.bevel_object is not None)
-        row.prop(curve, "use_fill_caps")
+        row.label(text="Bevel Factor:")
+
+        col = layout.column()
+        col.active = (curve.bevel_depth > 0 or curve.bevel_object is not None)
+        row = col.row(align=True)
+        row.prop(curve, "bevel_factor_mapping_start", text="")
+        row.prop(curve, "bevel_factor_start", text="Start")
+        row = col.row(align=True)
+        row.prop(curve, "bevel_factor_mapping_end", text="")
+        row.prop(curve, "bevel_factor_end", text="End")
+
+        row = layout.row()
+        row.active = curve.bevel_object is not None
         row.prop(curve, "use_map_taper")
+        row.prop(curve, "use_fill_caps")
 
 
 class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):