fix [#27083] Crash on setting Voxel resolution below -3 in 8bit raw texture settings
authorCampbell Barton <ideasman42@gmail.com>
Wed, 20 Apr 2011 23:21:26 +0000 (23:21 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 20 Apr 2011 23:21:26 +0000 (23:21 +0000)
source/blender/makesrna/intern/rna_texture.c

index 82eb5d1d0c947b8b1759881cfa4789b8bbc42625..0bab914d3d0a06fce3c66aaae2b0c662c866a956 100644 (file)
@@ -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");