Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_nla.c
| Show First 20 Lines • Show All 881 Lines • ▼ Show 20 Lines | static void rna_def_nlatrack(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "strips", PROP_COLLECTION, PROP_NONE); | prop = RNA_def_property(srna, "strips", PROP_COLLECTION, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "NlaStrip"); | RNA_def_property_struct_type(prop, "NlaStrip"); | ||||
| /* We do not support inserting or removing strips in overrides of tracks for now. */ | /* We do not support inserting or removing strips in overrides of tracks for now. */ | ||||
| RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY); | ||||
| RNA_def_property_ui_text(prop, "NLA Strips", "NLA Strips on this NLA-track"); | RNA_def_property_ui_text(prop, "NLA Strips", "NLA Strips on this NLA-track"); | ||||
| rna_api_nlatrack_strips(brna, prop); | rna_api_nlatrack_strips(brna, prop); | ||||
| prop = RNA_def_boolean(srna, | |||||
| "is_override_data", | |||||
| false, | |||||
| "Override Track", | |||||
| "In a local override data, whether this NLA track comes from the linked " | |||||
| "reference data, or is local to the override"); | |||||
| RNA_def_property_clear_flag(prop, PROP_EDITABLE); | |||||
| RNA_def_property_boolean_negative_sdna(prop, NULL, "flag", NLATRACK_OVERRIDELIBRARY_LOCAL); | |||||
| RNA_define_lib_overridable(true); | RNA_define_lib_overridable(true); | ||||
| /* name property */ | /* name property */ | ||||
| prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); | ||||
| RNA_def_property_ui_text(prop, "Name", ""); | RNA_def_property_ui_text(prop, "Name", ""); | ||||
| RNA_def_struct_name_property(srna, prop); | RNA_def_struct_name_property(srna, prop); | ||||
| RNA_def_property_update(prop, NC_ANIMATION | ND_NLA, NULL); /* this will do? */ | RNA_def_property_update(prop, NC_ANIMATION | ND_NLA, NULL); /* this will do? */ | ||||
| ▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines | |||||