From 6a54969cf15e861e13c654c230a35db8e6f377f9 Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Mon, 30 Dec 2019 01:24:18 +0100 Subject: Fix T72747: Increase minimum voxel size in the voxel remesher This was causing an ArithmeticError in OpenVDB with a voxel size that small. Another solution could be scaling both the mesh and the OpenVDB grid with opposite values to support a larger range of voxel sizes, but I would like to have a better solution to the voxel remesher compatibility with small objects. Reviewed By: JacquesLucke Maniphest Tasks: T72747 Differential Revision: https://developer.blender.org/D6498 --- source/blender/makesrna/intern/rna_mesh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/makesrna/intern/rna_mesh.c') diff --git a/source/blender/makesrna/intern/rna_mesh.c b/source/blender/makesrna/intern/rna_mesh.c index 5890c3fe8a2..5e21fc883a9 100644 --- a/source/blender/makesrna/intern/rna_mesh.c +++ b/source/blender/makesrna/intern/rna_mesh.c @@ -2987,7 +2987,7 @@ static void rna_def_mesh(BlenderRNA *brna) /* Remesh */ prop = RNA_def_property(srna, "remesh_voxel_size", PROP_FLOAT, PROP_DISTANCE); RNA_def_property_float_sdna(prop, NULL, "remesh_voxel_size"); - RNA_def_property_range(prop, 0.00001f, FLT_MAX); + RNA_def_property_range(prop, 0.0001f, FLT_MAX); RNA_def_property_ui_range(prop, 0.0001f, FLT_MAX, 0.01, 4); RNA_def_property_ui_text(prop, "Voxel Size", -- cgit v1.2.3