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>2009-09-13 21:38:43 +0400
committerCampbell Barton <ideasman42@gmail.com>2009-09-13 21:38:43 +0400
commit5c6eb9c4fad5871efc1d1c3d258b3ba65c221ea9 (patch)
tree9feae7e88c18d671800fdea555c165e8521834bd /release/ui
parente903632c1053f041a33ddb1b27d5cb938a7ee38b (diff)
replace curve.curve_2d True/False with curve.dimensions (2D/3D) enum suggested by William.
Diffstat (limited to 'release/ui')
-rw-r--r--release/ui/buttons_data_curve.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/release/ui/buttons_data_curve.py b/release/ui/buttons_data_curve.py
index 1a5e56b02a4..94ad073d0bb 100644
--- a/release/ui/buttons_data_curve.py
+++ b/release/ui/buttons_data_curve.py
@@ -56,7 +56,7 @@ class DATA_PT_shape_curve(DataButtonsPanel):
if not is_surf:
row = layout.row()
- row.itemR(curve, "curve_2d")
+ row.itemR(curve, "dimensions", expand=True)
split = layout.split()
@@ -64,7 +64,7 @@ class DATA_PT_shape_curve(DataButtonsPanel):
if not is_surf:
sub = col.column()
- sub.active = curve.curve_2d
+ sub.active = (curve.dimensions=='2D')
sub.itemL(text="Caps:")
row = sub.row()
row.itemR(curve, "front")
@@ -208,7 +208,7 @@ class DATA_PT_active_spline(DataButtonsPanelActive):
if not is_surf:
split = layout.split()
col = split.column()
- col.active = (not curve.curve_2d)
+ col.active = (curve.dimensions=='3D')
col.itemL(text="Interpolation:")
col.itemR(act_spline, "tilt_interpolation", text="Tilt")