Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_armature.c
| Show First 20 Lines • Show All 536 Lines • ▼ Show 20 Lines | #define RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone) \ | ||||
| RNA_def_property_ui_text(prop, "Out X", "X-axis handle offset for end of the B-Bone's curve, adjusts curvature"); | RNA_def_property_ui_text(prop, "Out X", "X-axis handle offset for end of the B-Bone's curve, adjusts curvature"); | ||||
| RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | ||||
| prop = RNA_def_property(srna, "bbone_curveouty", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "bbone_curveouty", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "curveOutY"); | RNA_def_property_float_sdna(prop, NULL, "curveOutY"); | ||||
| RNA_def_property_range(prop, -5.0f, 5.0f); | RNA_def_property_range(prop, -5.0f, 5.0f); | ||||
| RNA_def_property_ui_text(prop, "Out Y", "Y-axis handle offset for end of the B-Bone's curve, adjusts curvature"); | RNA_def_property_ui_text(prop, "Out Y", "Y-axis handle offset for end of the B-Bone's curve, adjusts curvature"); | ||||
| RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | ||||
| /* Ease In/Out */ | |||||
| prop = RNA_def_property(srna, "bbone_easein", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "ease1"); | |||||
| RNA_def_property_range(prop, -5.0f, 5.0f); | |||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_ui_text(prop, "B-Bone Ease In", "Length of first Bezier Handle (for B-Bones only)"); | |||||
| RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | |||||
| prop = RNA_def_property(srna, "bbone_easeout", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "ease2"); | |||||
| RNA_def_property_range(prop, -5.0f, 5.0f); | |||||
| RNA_def_property_float_default(prop, 1.0f); | |||||
| RNA_def_property_ui_text(prop, "B-Bone Ease Out", "Length of second Bezier Handle (for B-Bones only)"); | |||||
| RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | |||||
| /* Scale In/Out */ | /* Scale In/Out */ | ||||
| prop = RNA_def_property(srna, "bbone_scalein", PROP_FLOAT, PROP_NONE); | prop = RNA_def_property(srna, "bbone_scalein", PROP_FLOAT, PROP_NONE); | ||||
| RNA_def_property_float_sdna(prop, NULL, "scaleIn"); | RNA_def_property_float_sdna(prop, NULL, "scaleIn"); | ||||
| RNA_def_property_range(prop, 0.0f, 5.0f); | RNA_def_property_range(prop, 0.0f, 5.0f); | ||||
| RNA_def_property_float_default(prop, 1.0f); | RNA_def_property_float_default(prop, 1.0f); | ||||
| RNA_def_property_ui_text(prop, "Scale In", "Scale factor for start of the B-Bone, adjusts thickness (for tapering effects)"); | RNA_def_property_ui_text(prop, "Scale In", "Scale factor for start of the B-Bone, adjusts thickness (for tapering effects)"); | ||||
| RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | RNA_DEF_CURVEBONE_UPDATE(prop, is_posebone); | ||||
| ▲ Show 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | static void rna_def_bone_common(StructRNA *srna, int editbone) | ||||
| /* b-bones deform settings */ | /* b-bones deform settings */ | ||||
| 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(prop, "B-Bone Segments", "Number of subdivisions of bone (for B-Bones only)"); | RNA_def_property_ui_text(prop, "B-Bone Segments", "Number of subdivisions of bone (for B-Bones only)"); | ||||
| 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_in", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "ease1"); | |||||
| RNA_def_property_range(prop, 0.0f, 2.0f); | |||||
| RNA_def_property_ui_text(prop, "B-Bone Ease In", "Length of first Bezier Handle (for B-Bones only)"); | |||||
| RNA_def_property_update(prop, 0, "rna_Armature_update_data"); | |||||
| prop = RNA_def_property(srna, "bbone_out", PROP_FLOAT, PROP_NONE); | |||||
| RNA_def_property_float_sdna(prop, NULL, "ease2"); | |||||
| RNA_def_property_range(prop, 0.0f, 2.0f); | |||||
| RNA_def_property_ui_text(prop, "B-Bone Ease Out", "Length of second Bezier Handle (for B-Bones only)"); | |||||
| RNA_def_property_update(prop, 0, "rna_Armature_update_data"); | |||||
| 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_range(prop, 0.0f, 1000.0f); | ||||
| 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"); | ||||
| ▲ Show 20 Lines • Show All 481 Lines • Show Last 20 Lines | |||||