Fix: Use correct units in Shrinkwrap modifier
Differential Revision: https://developer.blender.org/D4261
This commit is contained in:
parent
25772c9e1d
commit
f17afe69a3
Notes:
blender-bot
2023-02-14 08:42:54 +01:00
Referenced by issue #89213, PyAPI: Some modifier properties have wrong subtype
|
@ -3261,14 +3261,14 @@ static void rna_def_modifier_shrinkwrap(BlenderRNA *brna)
|
|||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_ShrinkwrapModifier_vgroup_name_set");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "offset", PROP_FLOAT, PROP_NONE);
|
||||
prop = RNA_def_property(srna, "offset", PROP_FLOAT, PROP_UNIT_LENGTH);
|
||||
RNA_def_property_float_sdna(prop, NULL, "keepDist");
|
||||
RNA_def_property_range(prop, -FLT_MAX, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, -100, 100, 1, 2);
|
||||
RNA_def_property_ui_text(prop, "Offset", "Distance to keep from the target");
|
||||
RNA_def_property_update(prop, 0, "rna_Modifier_update");
|
||||
|
||||
prop = RNA_def_property(srna, "project_limit", PROP_FLOAT, PROP_NONE);
|
||||
prop = RNA_def_property(srna, "project_limit", PROP_FLOAT, PROP_UNIT_LENGTH);
|
||||
RNA_def_property_float_sdna(prop, NULL, "projLimit");
|
||||
RNA_def_property_range(prop, 0.0, FLT_MAX);
|
||||
RNA_def_property_ui_range(prop, 0, 100, 1, 2);
|
||||
|
|
Loading…
Reference in New Issue