Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Dobarro <pablodp606@gmail.com>2019-12-30 03:24:18 +0300
committerPablo Dobarro <pablodp606@gmail.com>2019-12-30 18:28:18 +0300
commit6a54969cf15e861e13c654c230a35db8e6f377f9 (patch)
tree47d57f6b48ab0cc1cee5c30fb0de770bbef35480 /source/blender/makesrna/intern/rna_mesh.c
parent62d131e962d6e0a4f39db98d4f89243c16c55779 (diff)
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
Diffstat (limited to 'source/blender/makesrna/intern/rna_mesh.c')
-rw-r--r--source/blender/makesrna/intern/rna_mesh.c2
1 files changed, 1 insertions, 1 deletions
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",