[Bf-blender-cvs] [fd0d8c710b5] master: Fix T77878: Hard minimum for voxel size of the remesh modifier

Robert Guetzkow noreply at git.blender.org
Thu Jun 25 18:48:16 CEST 2020


Commit: fd0d8c710b50b7e409a59b51bc75fef4838ae556
Author: Robert Guetzkow
Date:   Mon Jun 15 13:51:30 2020 +0200
Branches: master
https://developer.blender.org/rBfd0d8c710b50b7e409a59b51bc75fef4838ae556

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

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

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



More information about the Bf-blender-cvs mailing list