fix [#27083] Crash on setting Voxel resolution below -3 in 8bit raw texture settings

This commit is contained in:
Campbell Barton
2011-04-20 23:21:26 +00:00
parent 2d9c94604a
commit 831cc31482

View 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");