Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorScott Spadea <scottspadea>2019-01-28 13:01:46 +0300
committerJacques Lucke <mail@jlucke.com>2019-01-28 13:01:46 +0300
commitd473d5be5f59ed2cdd8e7b08feabcf7d9b8a8b5b (patch)
tree5b972231f153f244faac359df21637edd384aa52 /source
parente6ba760ce8fda5cf2e18bf26dddeeabdb4021066 (diff)
Fix: use correct units for some bone properties
Differential Revision: https://developer.blender.org/D4267
Diffstat (limited to 'source')
-rw-r--r--source/blender/makesrna/intern/rna_armature.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/makesrna/intern/rna_armature.c b/source/blender/makesrna/intern/rna_armature.c
index e07271f3009..62411b054a0 100644
--- a/source/blender/makesrna/intern/rna_armature.c
+++ b/source/blender/makesrna/intern/rna_armature.c
@@ -782,7 +782,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
/* Number values */
/* envelope deform settings */
- prop = RNA_def_property(srna, "envelope_distance", PROP_FLOAT, PROP_NONE);
+ prop = RNA_def_property(srna, "envelope_distance", PROP_FLOAT, PROP_DISTANCE);
RNA_def_property_float_sdna(prop, NULL, "dist");
RNA_def_property_range(prop, 0.0f, 1000.0f);
RNA_def_property_ui_text(prop, "Envelope Deform Distance", "Bone deformation distance (for Envelope deform only)");
@@ -794,7 +794,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
RNA_def_property_ui_text(prop, "Envelope Deform Weight", "Bone deformation weight (for Envelope deform only)");
RNA_def_property_update(prop, 0, "rna_Armature_update_data");
- prop = RNA_def_property(srna, "head_radius", PROP_FLOAT, PROP_UNSIGNED);
+ prop = RNA_def_property(srna, "head_radius", PROP_FLOAT, PROP_DISTANCE);
if (editbone) RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update");
else RNA_def_property_update(prop, 0, "rna_Armature_update_data");
RNA_def_property_float_sdna(prop, NULL, "rad_head");
@@ -803,7 +803,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
RNA_def_property_ui_range(prop, 0.01, 100, 0.1, 3);
RNA_def_property_ui_text(prop, "Envelope Head Radius", "Radius of head of bone (for Envelope deform only)");
- prop = RNA_def_property(srna, "tail_radius", PROP_FLOAT, PROP_UNSIGNED);
+ prop = RNA_def_property(srna, "tail_radius", PROP_FLOAT, PROP_DISTANCE);
if (editbone) RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update");
else RNA_def_property_update(prop, 0, "rna_Armature_update_data");
RNA_def_property_float_sdna(prop, NULL, "rad_tail");