Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/object/object_add.c
| Show First 20 Lines • Show All 1,723 Lines • ▼ Show 20 Lines | */ | ||||
| /* hook them up */ | /* hook them up */ | ||||
| BKE_nlatrack_add_strip(nlt, strip, is_liboverride); | BKE_nlatrack_add_strip(nlt, strip, is_liboverride); | ||||
| /* auto-name the strip, and give the track an interesting name */ | /* auto-name the strip, and give the track an interesting name */ | ||||
| BLI_strncpy(nlt->name, DATA_("SoundTrack"), sizeof(nlt->name)); | BLI_strncpy(nlt->name, DATA_("SoundTrack"), sizeof(nlt->name)); | ||||
| BKE_nlastrip_validate_name(adt, strip); | BKE_nlastrip_validate_name(adt, strip); | ||||
| WM_event_add_notifier(C, NC_ANIMATION | ND_NLA | NA_EDITED, NULL); | WM_event_add_notifier(C, NC_ANIMATION | ND_NLA | NA_ADDED, NULL); | ||||
| } | } | ||||
| return OPERATOR_FINISHED; | return OPERATOR_FINISHED; | ||||
| } | } | ||||
| void OBJECT_OT_speaker_add(wmOperatorType *ot) | void OBJECT_OT_speaker_add(wmOperatorType *ot) | ||||
| { | { | ||||
| /* identifiers */ | /* identifiers */ | ||||
| ▲ Show 20 Lines • Show All 1,810 Lines • Show Last 20 Lines | |||||