Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_constraint.c
| Show First 20 Lines • Show All 3,468 Lines • ▼ Show 20 Lines | void RNA_def_constraint(BlenderRNA *brna) | ||||
| /* enums */ | /* enums */ | ||||
| prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "type", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | RNA_def_property_clear_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "type"); | RNA_def_property_enum_sdna(prop, NULL, "type"); | ||||
| RNA_def_property_enum_items(prop, rna_enum_constraint_type_items); | RNA_def_property_enum_items(prop, rna_enum_constraint_type_items); | ||||
| RNA_def_property_ui_text(prop, "Type", ""); | RNA_def_property_ui_text(prop, "Type", ""); | ||||
| prop = RNA_def_boolean(srna, | |||||
| "is_override_data", | |||||
| false, | |||||
| "Override Constraint", | |||||
| "In a local override object, whether this constraint comes from the " | |||||
| "linked reference object, or is local to the override"); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", CONSTRAINT_OVERRIDE_LIBRARY_LOCAL); | |||||
| RNA_define_lib_overridable(true); | RNA_define_lib_overridable(true); | ||||
| prop = RNA_def_property(srna, "owner_space", PROP_ENUM, PROP_NONE); | prop = RNA_def_property(srna, "owner_space", PROP_ENUM, PROP_NONE); | ||||
| RNA_def_property_enum_sdna(prop, NULL, "ownspace"); | RNA_def_property_enum_sdna(prop, NULL, "ownspace"); | ||||
| RNA_def_property_enum_items(prop, owner_space_pchan_items); | RNA_def_property_enum_items(prop, owner_space_pchan_items); | ||||
| RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_Constraint_owner_space_itemf"); | RNA_def_property_enum_funcs(prop, NULL, NULL, "rna_Constraint_owner_space_itemf"); | ||||
| RNA_def_property_ui_text(prop, "Owner Space", "Space that owner is evaluated in"); | RNA_def_property_ui_text(prop, "Owner Space", "Space that owner is evaluated in"); | ||||
| RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); | RNA_def_property_update(prop, NC_OBJECT | ND_CONSTRAINT, "rna_Constraint_update"); | ||||
| ▲ Show 20 Lines • Show All 122 Lines • Show Last 20 Lines | |||||