[Bf-blender-cvs] [2a9abc0f5ee] blender-v2.79a-release: Fix T53650: remove hard limits on force field size and max distance.
Philipp Oeser
noreply at git.blender.org
Mon Jan 8 17:24:03 CET 2018
Commit: 2a9abc0f5eeb337d030937040bae004743508851
Author: Philipp Oeser
Date: Sat Jan 6 05:12:24 2018 +0100
Branches: blender-v2.79a-release
https://developer.blender.org/rB2a9abc0f5eeb337d030937040bae004743508851
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 514fca1b011..f07908a4cee 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