Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_armature.c
| Show First 20 Lines • Show All 915 Lines • ▼ Show 20 Lines | static void rna_def_bone_common(StructRNA *srna, int editbone) | ||||
| prop = RNA_def_property(srna, "bbone_segments", PROP_INT, PROP_NONE); | prop = RNA_def_property(srna, "bbone_segments", PROP_INT, PROP_NONE); | ||||
| RNA_def_property_int_sdna(prop, NULL, "segments"); | RNA_def_property_int_sdna(prop, NULL, "segments"); | ||||
| RNA_def_property_range(prop, 1, 32); | RNA_def_property_range(prop, 1, 32); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "B-Bone Segments", "Number of subdivisions of bone (for B-Bones only)"); | prop, "B-Bone Segments", "Number of subdivisions of bone (for B-Bones only)"); | ||||
| RNA_def_property_update(prop, 0, "rna_Armature_dependency_update"); | RNA_def_property_update(prop, 0, "rna_Armature_dependency_update"); | ||||
| prop = RNA_def_property(srna, "bbone_x", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "bbone_x", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "xwidth"); | RNA_def_property_float_sdna(prop, NULL, "xwidth"); | ||||
| RNA_def_property_range(prop, 0.0f, 1000.0f); | RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT); | ||||
| RNA_def_property_ui_text(prop, "B-Bone Display X Width", "B-Bone X size"); | RNA_def_property_ui_text(prop, "B-Bone Display X Width", "B-Bone X size"); | ||||
| RNA_def_property_update(prop, 0, "rna_Armature_update_data"); | RNA_def_property_update(prop, 0, "rna_Armature_update_data"); | ||||
| prop = RNA_def_property(srna, "bbone_z", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "bbone_z", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "zwidth"); | RNA_def_property_float_sdna(prop, NULL, "zwidth"); | ||||
| RNA_def_property_range(prop, 0.0f, 1000.0f); | RNA_def_property_ui_range(prop, -FLT_MAX, FLT_MAX, 1, RNA_TRANSLATION_PREC_DEFAULT); | ||||
| RNA_def_property_ui_text(prop, "B-Bone Display Z Width", "B-Bone Z size"); | RNA_def_property_ui_text(prop, "B-Bone Display Z Width", "B-Bone Z size"); | ||||
| RNA_def_property_update(prop, 0, "rna_Armature_update_data"); | RNA_def_property_update(prop, 0, "rna_Armature_update_data"); | ||||
campbellbarton: These should be left out, large ranges are causing issues - T68130 | |||||
| prop = RNA_def_property(srna, "bbone_handle_type_start", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "bbone_handle_type_start", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "bbone_prev_type"); | RNA_def_property_enum_sdna(prop, NULL, "bbone_prev_type"); | ||||
| RNA_def_property_enum_items(prop, prop_bbone_handle_type); | RNA_def_property_enum_items(prop, prop_bbone_handle_type); | ||||
| RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | RNA_def_property_clear_flag(prop, PROP_ANIMATABLE); | ||||
| RNA_def_property_ui_text( | RNA_def_property_ui_text( | ||||
| prop, "B-Bone Start Handle Type", "Selects how the start handle of the B-Bone is computed"); | prop, "B-Bone Start Handle Type", "Selects how the start handle of the B-Bone is computed"); | ||||
| RNA_def_property_update(prop, 0, "rna_Armature_dependency_update"); | RNA_def_property_update(prop, 0, "rna_Armature_dependency_update"); | ||||
| ▲ Show 20 Lines • Show All 472 Lines • Show Last 20 Lines | |||||
These should be left out, large ranges are causing issues - T68130