Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_armature.c
| Show First 20 Lines • Show All 1,258 Lines • ▼ Show 20 Lines | static void rna_def_edit_bone(BlenderRNA *brna) | ||||
| RNA_def_property_float_sdna(prop, NULL, "roll"); | RNA_def_property_float_sdna(prop, NULL, "roll"); | ||||
| RNA_def_property_ui_range(prop, -M_PI * 2, M_PI * 2, 10, 2); | RNA_def_property_ui_range(prop, -M_PI * 2, M_PI * 2, 10, 2); | ||||
| RNA_def_property_ui_text(prop, "Roll", "Bone rotation around head-tail axis"); | RNA_def_property_ui_text(prop, "Roll", "Bone rotation around head-tail axis"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update"); | RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update"); | ||||
| prop = RNA_def_property(srna, "head", PROP_FLOAT, PROP_TRANSLATION); | prop = RNA_def_property(srna, "head", PROP_FLOAT, PROP_TRANSLATION); | ||||
| RNA_def_property_float_sdna(prop, NULL, "head"); | RNA_def_property_float_sdna(prop, NULL, "head"); | ||||
| RNA_def_property_ui_range(prop, 0, FLT_MAX, 10, RNA_TRANSLATION_PREC_DEFAULT); | |||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Head", "Location of head end of the bone"); | RNA_def_property_ui_text(prop, "Head", "Location of head end of the bone"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update"); | RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update"); | ||||
| prop = RNA_def_property(srna, "tail", PROP_FLOAT, PROP_TRANSLATION); | prop = RNA_def_property(srna, "tail", PROP_FLOAT, PROP_TRANSLATION); | ||||
| RNA_def_property_float_sdna(prop, NULL, "tail"); | RNA_def_property_float_sdna(prop, NULL, "tail"); | ||||
| RNA_def_property_ui_range(prop, 0, FLT_MAX, 10, RNA_TRANSLATION_PREC_DEFAULT); | |||||
| RNA_def_property_array(prop, 3); | RNA_def_property_array(prop, 3); | ||||
| RNA_def_property_ui_text(prop, "Tail", "Location of tail end of the bone"); | RNA_def_property_ui_text(prop, "Tail", "Location of tail end of the bone"); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update"); | RNA_def_property_update(prop, 0, "rna_Armature_editbone_transform_update"); | ||||
| prop = RNA_def_property(srna, "length", PROP_FLOAT, PROP_DISTANCE); | prop = RNA_def_property(srna, "length", PROP_FLOAT, PROP_DISTANCE); | ||||
| RNA_def_property_float_funcs(prop, "rna_EditBone_length_get", "rna_EditBone_length_set", NULL); | RNA_def_property_float_funcs(prop, "rna_EditBone_length_get", "rna_EditBone_length_set", NULL); | ||||
| RNA_def_property_range(prop, 0, FLT_MAX); | RNA_def_property_range(prop, 0, FLT_MAX); | ||||
| ▲ Show 20 Lines • Show All 283 Lines • Show Last 20 Lines | |||||