Changed material RNA 'emit' value to be soft limited at 2.0 rather than hard limited.
authorMatt Ebb <matt@mke3.net>
Sun, 16 Aug 2009 03:59:39 +0000 (03:59 +0000)
committerMatt Ebb <matt@mke3.net>
Sun, 16 Aug 2009 03:59:39 +0000 (03:59 +0000)
source/blender/makesrna/intern/rna_material.c

index 66c08c4da4cde376b251489d8960d186cb6833ce..239055f6416b428388440341030a98821eb97171 100644 (file)
@@ -1208,7 +1208,8 @@ void RNA_def_material(BlenderRNA *brna)
        RNA_def_property_update(prop, NC_MATERIAL|ND_SHADING, NULL);
 
        prop= RNA_def_property(srna, "emit", PROP_FLOAT, PROP_NONE);
-       RNA_def_property_range(prop, 0, 2);
+       RNA_def_property_range(prop, 0, FLT_MAX);
+       RNA_def_property_ui_range(prop, 0, 2.0f);
        RNA_def_property_ui_text(prop, "Emit", "Amount of light to emit.");
        RNA_def_property_update(prop, NC_MATERIAL|ND_SHADING, NULL);