From a9307a4dd3190811a633c3f4d7556d81c8610642 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 24 Feb 2010 15:56:27 +0000 Subject: [#21295] Escape key doesn't cancel python modal operators also fix distance with lamps being negative for typed in values. --- source/blender/makesrna/intern/rna_lamp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesrna/intern/rna_lamp.c') diff --git a/source/blender/makesrna/intern/rna_lamp.c b/source/blender/makesrna/intern/rna_lamp.c index 4f650f0ed42..a38f4c12c63 100644 --- a/source/blender/makesrna/intern/rna_lamp.c +++ b/source/blender/makesrna/intern/rna_lamp.c @@ -346,6 +346,7 @@ static void rna_def_lamp(BlenderRNA *brna) prop= RNA_def_property(srna, "distance", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "dist"); + RNA_def_property_range(prop, 0, INT_MAX); RNA_def_property_ui_range(prop, 0, 1000, 1, 2); RNA_def_property_ui_text(prop, "Distance", "Falloff distance - the light is at half the original intensity at this point"); RNA_def_property_update(prop, 0, "rna_Lamp_draw_update"); -- cgit v1.2.3