Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_action.c
| Show First 20 Lines • Show All 92 Lines • ▼ Show 20 Lines | for (fcu = agrp->channels.first; (fcu) && (fcu->grp == agrp); fcu = fcn) { | ||||
| /* tack onto the end */ | /* tack onto the end */ | ||||
| BLI_addtail(&act->curves, fcu); | BLI_addtail(&act->curves, fcu); | ||||
| } | } | ||||
| MEM_freeN(agrp); | MEM_freeN(agrp); | ||||
| RNA_POINTER_INVALIDATE(agrp_ptr); | RNA_POINTER_INVALIDATE(agrp_ptr); | ||||
| DEG_id_tag_update(&act->id, ID_RECALC_COPY_ON_WRITE); | DEG_id_tag_update(&act->id, ID_RECALC_ANIMATION_NO_FLUSH); | ||||
| WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | ||||
| } | } | ||||
| static FCurve *rna_Action_fcurve_new(bAction *act, Main *bmain, ReportList *reports, const char *data_path, | static FCurve *rna_Action_fcurve_new(bAction *act, Main *bmain, ReportList *reports, const char *data_path, | ||||
| int index, const char *group) | int index, const char *group) | ||||
| { | { | ||||
| if (group && group[0] == '\0') group = NULL; | if (group && group[0] == '\0') group = NULL; | ||||
| ▲ Show 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | if (BLI_findindex(&act->curves, fcu) == -1) { | ||||
| return; | return; | ||||
| } | } | ||||
| BLI_remlink(&act->curves, fcu); | BLI_remlink(&act->curves, fcu); | ||||
| free_fcurve(fcu); | free_fcurve(fcu); | ||||
| RNA_POINTER_INVALIDATE(fcu_ptr); | RNA_POINTER_INVALIDATE(fcu_ptr); | ||||
| } | } | ||||
| DEG_id_tag_update(&act->id, ID_RECALC_COPY_ON_WRITE); | DEG_id_tag_update(&act->id, ID_RECALC_ANIMATION_NO_FLUSH); | ||||
| WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | WM_main_add_notifier(NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); | ||||
| } | } | ||||
| static TimeMarker *rna_Action_pose_markers_new(bAction *act, const char name[]) | static TimeMarker *rna_Action_pose_markers_new(bAction *act, const char name[]) | ||||
| { | { | ||||
| TimeMarker *marker = MEM_callocN(sizeof(TimeMarker), "TimeMarker"); | TimeMarker *marker = MEM_callocN(sizeof(TimeMarker), "TimeMarker"); | ||||
| marker->flag = 1; | marker->flag = 1; | ||||
| marker->frame = 1; | marker->frame = 1; | ||||
| ▲ Show 20 Lines • Show All 574 Lines • Show Last 20 Lines | |||||