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:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-02-02 23:20:51 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-02-02 23:20:51 +0400
commit3b3d811bf0a7e1a69a863d6b248be6dff74ada44 (patch)
tree2f0946cfb2788311ef238e0fbca18c151e4b72b9
parent1471a1983c4814467aab583303d50fdb0c059c5c (diff)
Disallow fill caps for curves without bevel object.
It's getting complicated to detect which part of curve is actually a cap in cases like extruded 2d curve with non-zero depth.
-rw-r--r--release/scripts/startup/bl_ui/properties_data_curve.py5
-rw-r--r--source/blender/blenkernel/intern/displist.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_curve.py b/release/scripts/startup/bl_ui/properties_data_curve.py
index f6fcb0a89cd..f8e3d48d40c 100644
--- a/release/scripts/startup/bl_ui/properties_data_curve.py
+++ b/release/scripts/startup/bl_ui/properties_data_curve.py
@@ -112,7 +112,6 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
sub.active = (curve.dimensions == '2D' or (curve.bevel_object is None and curve.dimensions == '3D'))
sub.prop(curve, "fill_mode", text="")
col.prop(curve, "use_fill_deform")
- col.prop(curve, "use_fill_caps")
class DATA_PT_curve_texture_space(CurveButtonsPanel, Panel):
@@ -166,6 +165,10 @@ class DATA_PT_geometry_curve(CurveButtonsPanel, Panel):
col.label(text="Bevel Object:")
col.prop(curve, "bevel_object", text="")
+ row = col.row()
+ row.active = curve.bevel_object != None
+ row.prop(curve, "use_fill_caps")
+
class DATA_PT_pathanim(CurveButtonsPanelCurve, Panel):
bl_label = "Path Animation"
diff --git a/source/blender/blenkernel/intern/displist.c b/source/blender/blenkernel/intern/displist.c
index 3c3a043e593..b14b9b43cf3 100644
--- a/source/blender/blenkernel/intern/displist.c
+++ b/source/blender/blenkernel/intern/displist.c
@@ -1360,7 +1360,7 @@ static void do_makeDispListCurveTypes(Scene *scene, Object *ob, ListBase *dispba
/* rotate bevel piece and write in data */
rotateBevelPiece(cu, bevp, dlb, widfac, fac, &data);
- if (cu->flag & CU_FILL_CAPS) {
+ if (cu->bevobj && (cu->flag & CU_FILL_CAPS)) {
if (a == 0)
fillBevelCap(cu, nu, bevp, dlb, fac, widfac, &bottom_capbase);
else if (a == bl->nr - 1)