Fix T44408: "Rest Length" property in the Stretch To constraint was getting clipped when using Metric Units
Increased the upper bound for the "Rest Length" property to cope with metric units, especially when large (i.e. > 2 m) distances are involved. It may be necessary to increase this again in the future, if even larger distances get used (though it then starts getting a bit difficulty to justify such setups).
This commit is contained in:
parent
6603a10331
commit
0b691563ea
@ -1357,7 +1357,8 @@ static void rna_def_constraint_stretch_to(BlenderRNA *brna)
|
||||
|
||||
prop = RNA_def_property(srna, "rest_length", PROP_FLOAT, PROP_DISTANCE);
|
||||
RNA_def_property_float_sdna(prop, NULL, "orglength");
|
||||
RNA_def_property_range(prop, 0.0, 100.f);
|
||||
RNA_def_property_range(prop, 0.0, 1000.f);
|
||||
RNA_def_property_ui_range(prop, 0, 100.0f, 10, RNA_TRANSLATION_PREC_DEFAULT);
|
||||
RNA_def_property_ui_text(prop, "Original Length", "Length at rest position");
|
||||
RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user