[Bf-blender-cvs] [c6abf41f712] master: Fix T53650: remove hard limits on force field size and max distance.

Philipp Oeser noreply at git.blender.org
Sat Jan 6 16:44:19 CET 2018


Commit: c6abf41f71210b56c9484bf6bbd0df90d9c93fdc
Author: Philipp Oeser
Date:   Sat Jan 6 05:12:24 2018 +0100
Branches: master
https://developer.blender.org/rBc6abf41f71210b56c9484bf6bbd0df90d9c93fdc

Fix T53650: remove hard limits on force field size and max distance.

Differential Revision: https://developer.blender.org/D2987

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

M	source/blender/makesrna/intern/rna_object_force.c

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

diff --git a/source/blender/makesrna/intern/rna_object_force.c b/source/blender/makesrna/intern/rna_object_force.c
index 366de586fa5..3fa7eb068d1 100644
--- a/source/blender/makesrna/intern/rna_object_force.c
+++ b/source/blender/makesrna/intern/rna_object_force.c
@@ -1262,7 +1262,8 @@ static void rna_def_field(BlenderRNA *brna)
 
 	prop = RNA_def_property(srna, "size", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "f_size");
-	RNA_def_property_range(prop, 0.0f, 10.0f);
+	RNA_def_property_range(prop, 0.0f, FLT_MAX);
+	RNA_def_property_ui_range(prop, 0.0f, 10.0f, 1.0f, 3);
 	RNA_def_property_ui_text(prop, "Size", "Size of the turbulence");
 	RNA_def_property_update(prop, 0, "rna_FieldSettings_update");
 
@@ -1286,7 +1287,8 @@ static void rna_def_field(BlenderRNA *brna)
 	
 	prop = RNA_def_property(srna, "distance_max", PROP_FLOAT, PROP_NONE);
 	RNA_def_property_float_sdna(prop, NULL, "maxdist");
-	RNA_def_property_range(prop, 0.0f, 1000.0f);
+	RNA_def_property_range(prop, 0.0f, FLT_MAX);
+	RNA_def_property_ui_range(prop, 0.0f, 1000.0f, 1.0f, 3);
 	RNA_def_property_ui_text(prop, "Maximum Distance", "Maximum distance for the field to work");
 	RNA_def_property_update(prop, 0, "rna_FieldSettings_update");



More information about the Bf-blender-cvs mailing list