Remove artificial limit, now HDR textures can be used to displace.
authorNathan Letwory <nathan@letworyinteractive.com>
Mon, 16 May 2011 11:46:16 +0000 (11:46 +0000)
committerNathan Letwory <nathan@letworyinteractive.com>
Mon, 16 May 2011 11:46:16 +0000 (11:46 +0000)
source/blender/makesrna/intern/rna_modifier.c

index ee33f40e5282662b25cc555c20c8420c90bafa17..333451e1d31a52dcf97d48a4a011db3774b314cc 100644 (file)
@@ -1409,7 +1409,7 @@ static void rna_def_modifier_displace(BlenderRNA *brna)
 
        prop= RNA_def_property(srna, "mid_level", PROP_FLOAT, PROP_DISTANCE);
        RNA_def_property_float_sdna(prop, NULL, "midlevel");
-       RNA_def_property_range(prop, 0, 1);
+       RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
        RNA_def_property_ui_range(prop, 0, 1, 10, 3);
        RNA_def_property_ui_text(prop, "Midlevel", "Material value that gives no displacement");
        RNA_def_property_update(prop, 0, "rna_Modifier_update");