Front/Back togles should not disable when curve is 2D and bevel object is used
authorDaniel Salazar <zanqdo@gmail.com>
Tue, 16 Aug 2011 12:37:23 +0000 (12:37 +0000)
committerDaniel Salazar <zanqdo@gmail.com>
Tue, 16 Aug 2011 12:37:23 +0000 (12:37 +0000)
http://www.pasteall.org/pic/show.php?id=16449

release/scripts/startup/bl_ui/properties_data_curve.py

index 7bc136c8ce09f41630e8ffd87e4535fddfc10c28..6448b9a5229d908c632bbaa865c6121f5142eed9 100644 (file)
@@ -109,7 +109,7 @@ class DATA_PT_shape_curve(CurveButtonsPanel, Panel):
         if (is_curve or is_text):
             col.label(text="Fill:")
             sub = col.column()
-            sub.active = (curve.bevel_object is None)
+            sub.active = (curve.dimensions == '2D' or (curve.bevel_object is None and curve.dimensions == '3D'))
             sub.prop(curve, "use_fill_front")
             sub.prop(curve, "use_fill_back")
             col.prop(curve, "use_fill_deform", text="Fill Deformed")