Fix T77878: Hard minimum for voxel size of the remesh modifier

This patch fixes T77878 in the same way that T72747 was fixed.
A hard minimum for the voxel size was added to avoid an arithmetics error.

Reviewed By: brecht

Differential Revision: https://developer.blender.org/D8027
This commit is contained in:
Robert Guetzkow 2020-06-15 13:51:30 +02:00
parent 31ad8bda74
commit fd0d8c710b
Notes: blender-bot 2023-02-14 10:37:49 +01:00
Referenced by issue #78808, Remesh modifier bug crashes blender 2.83.1
Referenced by issue #77878, Voxel remesh modifier ArithmeticError
1 changed files with 1 additions and 0 deletions

View File

@ -5454,6 +5454,7 @@ static void rna_def_modifier_remesh(BlenderRNA *brna)
prop = RNA_def_property(srna, "voxel_size", PROP_FLOAT, PROP_DISTANCE);
RNA_def_property_float_sdna(prop, NULL, "voxel_size");
RNA_def_property_range(prop, 0.0001f, FLT_MAX);
RNA_def_property_ui_range(prop, 0.0001, 2, 0.1, 3);
RNA_def_property_ui_text(prop,
"Voxel Size",