- revert own recent change after discussion, default set hard minimum of colors to 0 but now don't set a hard min, each property needs to define.

- use_old_bump setting only applies to material texture slots.
This commit is contained in:
Campbell Barton 2010-12-14 16:20:25 +00:00
parent 2dc61df9ea
commit 4057626e55
2 changed files with 3 additions and 4 deletions

@ -988,8 +988,9 @@ class TEXTURE_PT_influence(TextureSlotPanel, bpy.types.Panel):
# color is used on grayscale textures even when use_rgb_to_intensity is disabled.
col.prop(tex, "color", text="")
# XXX, dont remove since old files have this users need to be able to disable!
col.prop(tex, "use_old_bump", text="Old Bump Mapping")
if isinstance(idblock, bpy.types.Material):
# XXX, dont remove since old files have this users need to be able to disable!
col.prop(tex, "use_old_bump", text="Old Bump Mapping")
col = split.column()
col.prop(tex, "invert", text="Negative")

@ -887,8 +887,6 @@ PropertyRNA *RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier
fprop->hardmax= FLT_MAX;
if(ELEM(subtype, PROP_COLOR, PROP_COLOR_GAMMA)) {
fprop->hardmin= 0.0f; /* disallow colors to go below zero */
fprop->softmin= 0.0f;
fprop->softmax= 1.0f;
}