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:
authorCampbell Barton <ideasman42@gmail.com>2012-02-28 15:18:05 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-02-28 15:18:05 +0400
commit95c14aa685522740eee03a9bdc2ee62b9414564f (patch)
tree94291ce4936d8311c30595264e7cc2d845b58016 /release/scripts/startup/bl_ui/properties_data_curve.py
parent0d66b57bc278c185a721276e2fc69dad8342e76d (diff)
Fix UI error - some curve settings were in the path panel and were greyed out when 'Path Animation' was disabled, but were infact used for the curve deform modifier.
noticed while looking into bug [#30349]. Move these settings under the main curves panel under text "Path / Curve-Deform:"
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_curve.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_curve.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py
index 91230c9dc89..fb365ea1fa4 100644
--- a/release/scripts/startup/bl_ui/properties_data_curve.py
+++ b/release/scripts/startup/bl_ui/properties_data_curve.py
@@ -113,6 +113,14 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
sub.prop(curve, "fill_mode", text="")
col.prop(curve, "use_fill_deform")
+ if is_curve:
+ col.label(text="Path / Curve-Deform:")
+ sub = col.column()
+ rowsub = sub.row()
+ rowsub.prop(curve, "use_radius")
+ rowsub.prop(curve, "use_stretch")
+ sub.prop(curve, "use_deform_bounds")
+
class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
bl_label = "Texture Space"
@@ -189,16 +197,11 @@ class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
layout.prop(curve, "path_duration", text="Frames")
layout.prop(curve, "eval_time")
- split = layout.split()
-
- col = split.column()
- col.prop(curve, "use_path_follow")
- col.prop(curve, "use_stretch")
- col.prop(curve, "use_deform_bounds")
- col = split.column()
- col.prop(curve, "use_radius")
- col.prop(curve, "use_time_offset", text="Offset Children")
+ # these are for paths only
+ row = layout.row()
+ row.prop(curve, "use_path_follow")
+ row.prop(curve, "use_time_offset", text="Offset Children")
class DATA_PT_active_spline(CurveButtonsPanelActive, Panel):