diff options
author | Campbell Barton <ideasman42@gmail.com> | 2010-01-22 19:47:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2010-01-22 19:47:52 +0300 |
commit | 8038171919134f87d54b2c4327662c3e12e5d77b (patch) | |
tree | 9a45f03395b8ff5aeb49658caba3debb37ef9190 /source/blender/makesrna/intern/rna_brush.c | |
parent | 86facbd682d5a0a28f2413b05089dea9a94ee056 (diff) |
bugfix [#20771] Blender crashes after using pop-up color selection dialog in Texture Paint
Diffstat (limited to 'source/blender/makesrna/intern/rna_brush.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_brush.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_brush.c b/source/blender/makesrna/intern/rna_brush.c index 152e92eb406..1c5ea81a285 100644 --- a/source/blender/makesrna/intern/rna_brush.c +++ b/source/blender/makesrna/intern/rna_brush.c @@ -209,6 +209,7 @@ static void rna_def_brush(BlenderRNA *brna) RNA_def_property_update(prop, 0, "rna_Brush_update"); prop= RNA_def_property(srna, "color", PROP_FLOAT, PROP_COLOR_GAMMA); + RNA_def_property_range(prop, 0.0, 1.0); RNA_def_property_float_sdna(prop, NULL, "rgb"); RNA_def_property_ui_text(prop, "Color", ""); RNA_def_property_update(prop, 0, "rna_Brush_update"); |