[Bf-blender-cvs] [6a54969cf15] master: Fix T72747: Increase minimum voxel size in the voxel remesher

Pablo Dobarro noreply at git.blender.org
Mon Dec 30 16:23:59 CET 2019


Commit: 6a54969cf15e861e13c654c230a35db8e6f377f9
Author: Pablo Dobarro
Date:   Mon Dec 30 01:24:18 2019 +0100
Branches: master
https://developer.blender.org/rB6a54969cf15e861e13c654c230a35db8e6f377f9

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

===================================================================

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



More information about the Bf-blender-cvs mailing list