From 831cc31482aa3dc7293ea131d3ba0434bdd08d0d Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Wed, 20 Apr 2011 23:21:26 +0000 Subject: fix [#27083] Crash on setting Voxel resolution below -3 in 8bit raw texture settings --- source/blender/makesrna/intern/rna_texture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source') 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"); -- cgit v1.2.3