Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_animation.c
| Show First 20 Lines • Show All 1,201 Lines • ▼ Show 20 Lines | static void rna_api_animdata_nla_tracks(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | RNA_def_parameter_clear_flags(parm, PROP_THICK_WRAP, 0); | ||||
| prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE); | prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE); | ||||
| RNA_def_property_struct_type(prop, "NlaTrack"); | RNA_def_property_struct_type(prop, "NlaTrack"); | ||||
| RNA_def_property_pointer_funcs( | RNA_def_property_pointer_funcs( | ||||
| prop, "rna_NlaTrack_active_get", "rna_NlaTrack_active_set", NULL, NULL); | prop, "rna_NlaTrack_active_get", "rna_NlaTrack_active_set", NULL, NULL); | ||||
| RNA_def_property_flag(prop, PROP_EDITABLE); | RNA_def_property_flag(prop, PROP_EDITABLE); | ||||
| RNA_def_property_ui_text(prop, "Active Track", "Active NLA Track"); | RNA_def_property_ui_text(prop, "Active Track", "Active NLA Track"); | ||||
| RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_ACTION); | |||||
| /* XXX: should (but doesn't) update the active track in the NLA window */ | /* XXX: should (but doesn't) update the active track in the NLA window */ | ||||
| RNA_def_property_update(prop, NC_ANIMATION | ND_NLA | NA_SELECTED, NULL); | RNA_def_property_update(prop, NC_ANIMATION | ND_NLA | NA_SELECTED, NULL); | ||||
| } | } | ||||
| static void rna_api_animdata_drivers(BlenderRNA *brna, PropertyRNA *cprop) | static void rna_api_animdata_drivers(BlenderRNA *brna, PropertyRNA *cprop) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| ▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines | |||||