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
This commit is contained in:
Pablo Dobarro 2019-12-30 01:24:18 +01:00
parent 62d131e962
commit 6a54969cf1
Notes: blender-bot 2023-02-14 09:48:23 +01:00
Referenced by issue #72747, Voxel remesh crash
1 changed files with 1 additions and 1 deletions

View File

@ -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",