From fd0d8c710b50b7e409a59b51bc75fef4838ae556 Mon Sep 17 00:00:00 2001 From: Robert Guetzkow Date: Mon, 15 Jun 2020 13:51:30 +0200 Subject: 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 --- source/blender/makesrna/intern/rna_modifier.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/makesrna/intern/rna_modifier.c') 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", -- cgit v1.2.3