diff options
author | Robert Guetzkow <gitcommit@outlook.de> | 2020-06-15 14:51:30 +0300 |
---|---|---|
committer | Robert Guetzkow <gitcommit@outlook.de> | 2020-06-25 19:42:43 +0300 |
commit | fd0d8c710b50b7e409a59b51bc75fef4838ae556 (patch) | |
tree | 48967c88857cb2d2b3c34a7b70b3452c5ca448f7 /source/blender | |
parent | 31ad8bda74ec8228db03b5969145c499b0f5a6f3 (diff) |
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
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/makesrna/intern/rna_modifier.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_modifier.c b/source/blender/makesrna/intern/rna_modifier.c index c35b768fd01..57e46314777 100644 --- a/source/blender/makesrna/intern/rna_modifier.c +++ b/source/blender/makesrna/intern/rna_modifier.c @@ -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", |