Fix T53650: remove hard limits on force field size and max distance.
Differential Revision: https://developer.blender.org/D2987
This commit is contained in:
parent
e4dce3b3d7
commit
2a9abc0f5e
|
@ -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");
|
||||
|
||||
|
|
Loading…
Reference in New Issue