Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_modifier.c
| Show First 20 Lines • Show All 1,811 Lines • ▼ Show 20 Lines | static void rna_def_modifier_armature(BlenderRNA *brna) | ||||
| srna = RNA_def_struct(brna, "ArmatureModifier", "Modifier"); | srna = RNA_def_struct(brna, "ArmatureModifier", "Modifier"); | ||||
| RNA_def_struct_ui_text(srna, "Armature Modifier", "Armature deformation modifier"); | RNA_def_struct_ui_text(srna, "Armature Modifier", "Armature deformation modifier"); | ||||
| RNA_def_struct_sdna(srna, "ArmatureModifierData"); | RNA_def_struct_sdna(srna, "ArmatureModifierData"); | ||||
| RNA_def_struct_ui_icon(srna, ICON_MOD_ARMATURE); | RNA_def_struct_ui_icon(srna, ICON_MOD_ARMATURE); | ||||
| prop = RNA_def_property(srna, "object", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "object", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_ui_text(prop, "Object", "Armature object to deform with"); | RNA_def_property_ui_text(prop, "Object", "Armature object to deform with"); | ||||
| RNA_def_property_pointer_funcs(prop, NULL, "rna_ArmatureModifier_object_set", NULL, "rna_Armature_object_poll"); | RNA_def_property_pointer_funcs(prop, NULL, "rna_ArmatureModifier_object_set", NULL, "rna_Armature_object_poll"); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK); | RNA_def_property_flag(prop, PROP_EDITABLE | PROP_ID_SELF_CHECK | PROP_OVERRIDABLE); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_dependency_update"); | ||||
| prop = RNA_def_property(srna, "use_bone_envelopes", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_bone_envelopes", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "deformflag", ARM_DEF_ENVELOPE); | RNA_def_property_boolean_sdna(prop, NULL, "deformflag", ARM_DEF_ENVELOPE); | ||||
| RNA_def_property_ui_text(prop, "Use Bone Envelopes", "Bind Bone envelopes to armature modifier"); | RNA_def_property_ui_text(prop, "Use Bone Envelopes", "Bind Bone envelopes to armature modifier"); | ||||
| RNA_def_property_update(prop, 0, "rna_Modifier_update"); | RNA_def_property_update(prop, 0, "rna_Modifier_update"); | ||||
| prop = RNA_def_property(srna, "use_vertex_groups", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "use_vertex_groups", PROP_BOOLEAN, PROP_NONE); | ||||
| ▲ Show 20 Lines • Show All 3,088 Lines • Show Last 20 Lines | |||||