diff options
author | Matt Ebb <matt@mke3.net> | 2009-05-21 11:40:43 +0400 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2009-05-21 11:40:43 +0400 |
commit | b495e544a82527092bd6c589c0d26b99dd673540 (patch) | |
tree | 73e7be8e039ecb90777aa262bc6bcd1aa22937fa /release | |
parent | 176a49d1abdac7aa20ef117eec28c55879e942e8 (diff) |
* removed some arbitrary range limits on property values
* turned some slider UI controls back into number fields
Note: Sliders should only be used when representing a property that's
conceptually a percentage or ratio. For arbitrary numbers, use a number field.
For example, a lamp's energy can theoretically be anything - 0.1, 3.5, 125.0, it
doesn't matter - it's just a number, not a percentage. So this should be a
number field.
Diffstat (limited to 'release')
-rw-r--r-- | release/ui/buttons_data_curve.py | 2 | ||||
-rw-r--r-- | release/ui/buttons_data_lamp.py | 2 | ||||
-rw-r--r-- | release/ui/buttons_material.py | 30 |
3 files changed, 17 insertions, 17 deletions
diff --git a/release/ui/buttons_data_curve.py b/release/ui/buttons_data_curve.py index e7dc7810493..a51ce50b047 100644 --- a/release/ui/buttons_data_curve.py +++ b/release/ui/buttons_data_curve.py @@ -69,7 +69,7 @@ class DATA_PT_geometry(DataButtonsPanel): sub.itemR(curve, "taper_object") sub = split.column() sub.itemL(text="Bevel:") - sub.itemR(curve, "bevel_depth", text="Depth", slider=True) + sub.itemR(curve, "bevel_depth", text="Depth") sub.itemR(curve, "bevel_resolution", text="Resolution") sub.itemR(curve, "bevel_object") diff --git a/release/ui/buttons_data_lamp.py b/release/ui/buttons_data_lamp.py index 2d0efdb83ac..2005481d38b 100644 --- a/release/ui/buttons_data_lamp.py +++ b/release/ui/buttons_data_lamp.py @@ -28,7 +28,7 @@ class DATA_PT_lamp(DataButtonsPanel): sub = split.column() sub.itemR(lamp, "color") - sub.itemR(lamp, "energy", slider=True) + sub.itemR(lamp, "energy") sub.itemR(lamp, "distance") sub.itemR(lamp, "negative") diff --git a/release/ui/buttons_material.py b/release/ui/buttons_material.py index d13ae251a5a..01066947332 100644 --- a/release/ui/buttons_material.py +++ b/release/ui/buttons_material.py @@ -50,7 +50,7 @@ class MATERIAL_PT_sss(MaterialButtonsPanel): flow = layout.column_flow() flow.itemR(sss, "error_tolerance") flow.itemR(sss, "ior") - flow.itemR(sss, "scale", slider=True) + flow.itemR(sss, "scale") row = layout.row() row.column().itemR(sss, "color") @@ -59,8 +59,8 @@ class MATERIAL_PT_sss(MaterialButtonsPanel): flow = layout.column_flow() flow.itemR(sss, "color_factor", slider=True) flow.itemR(sss, "texture_factor", slider=True) - flow.itemR(sss, "front", slider=True) - flow.itemR(sss, "back", slider=True) + flow.itemR(sss, "front") + flow.itemR(sss, "back") class MATERIAL_PT_raymir(MaterialButtonsPanel): __idname__= "MATERIAL_PT_raymir" @@ -84,7 +84,7 @@ class MATERIAL_PT_raymir(MaterialButtonsPanel): sub = split.column() sub.itemR(raym, "reflect", text="RayMir", slider=True) - sub.itemR(raym, "fresnel", slider=True) + sub.itemR(raym, "fresnel") sub.itemR(raym, "fresnel_fac", text="Fac", slider=True) sub = split.column() @@ -120,7 +120,7 @@ class MATERIAL_PT_raytransp(MaterialButtonsPanel): sub = split.column() sub.itemR(rayt, "ior") - sub.itemR(rayt, "fresnel", slider=True) + sub.itemR(rayt, "fresnel") sub.itemR(rayt, "fresnel_fac", text="Fac", slider=True) sub = split.column() @@ -131,7 +131,7 @@ class MATERIAL_PT_raytransp(MaterialButtonsPanel): flow = layout.column_flow() flow.itemR(rayt, "filter", slider=True) flow.itemR(rayt, "limit") - flow.itemR(rayt, "falloff", slider=True) + flow.itemR(rayt, "falloff") flow.itemR(rayt, "specular_opacity", slider=True) flow.itemR(rayt, "depth") @@ -152,8 +152,8 @@ class MATERIAL_PT_halo(MaterialButtonsPanel): sub = split.column() sub.itemL(text="General Settings:") - sub.itemR(halo, "size", slider=True) - sub.itemR(halo, "hardness", slider=True) + sub.itemR(halo, "size") + sub.itemR(halo, "hardness") sub.itemR(halo, "add", slider=True) sub = split.column() @@ -175,20 +175,20 @@ class MATERIAL_PT_halo(MaterialButtonsPanel): sub = row.column() if (halo.ring): - sub.itemR(halo, "rings", slider=True) + sub.itemR(halo, "rings") if (halo.lines): - sub.itemR(halo, "line_number", slider=True) + sub.itemR(halo, "line_number") if (halo.ring or halo.lines): sub.itemR(halo, "seed") if (halo.star): - sub.itemR(halo, "star_tips", slider=True) + sub.itemR(halo, "star_tips") if (halo.flare_mode): sub.itemL(text="Flare:") - sub.itemR(halo, "flare_size", text="Size", slider=True) - sub.itemR(halo, "flare_subsize", text="Subsize", slider=True) - sub.itemR(halo, "flare_boost", text="Boost", slider=True) + sub.itemR(halo, "flare_size", text="Size") + sub.itemR(halo, "flare_subsize", text="Subsize") + sub.itemR(halo, "flare_boost", text="Boost") sub.itemR(halo, "flare_seed", text="Seed") - sub.itemR(halo, "flares_sub", text="Sub", slider=True) + sub.itemR(halo, "flares_sub", text="Sub") bpy.types.register(MATERIAL_PT_material) bpy.types.register(MATERIAL_PT_raymir) |