diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-04-21 03:21:26 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-04-21 03:21:26 +0400 |
commit | 831cc31482aa3dc7293ea131d3ba0434bdd08d0d (patch) | |
tree | f3907532f6ed6c17bfab0bc28a8ff4c9d1967385 /source/blender/makesrna/intern/rna_texture.c | |
parent | 2d9c94604a375505f076da157875afc4186be35f (diff) |
fix [#27083] Crash on setting Voxel resolution below -3 in 8bit raw texture settings
Diffstat (limited to 'source/blender/makesrna/intern/rna_texture.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_texture.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_texture.c b/source/blender/makesrna/intern/rna_texture.c index 82eb5d1d0c9..0bab914d3d0 100644 --- a/source/blender/makesrna/intern/rna_texture.c +++ b/source/blender/makesrna/intern/rna_texture.c @@ -1638,6 +1638,7 @@ static void rna_def_texture_voxeldata(BlenderRNA *brna) prop= RNA_def_property(srna, "resolution", PROP_INT, PROP_NONE); RNA_def_property_int_sdna(prop, NULL, "resol"); + RNA_def_property_range(prop, 1, INT_MAX); RNA_def_property_ui_text(prop, "Resolution", "Resolution of the voxel grid"); RNA_def_property_update(prop, 0, "rna_Texture_voxeldata_update"); |