Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/transform/transform_convert_nla.c
| Show All 30 Lines | |||||
| #include "BKE_context.h" | #include "BKE_context.h" | ||||
| #include "BKE_nla.h" | #include "BKE_nla.h" | ||||
| #include "ED_anim_api.h" | #include "ED_anim_api.h" | ||||
| #include "ED_markers.h" | #include "ED_markers.h" | ||||
| #include "WM_api.h" | #include "WM_api.h" | ||||
| #include "WM_types.h" | |||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "transform.h" | #include "transform.h" | ||||
| #include "transform_convert.h" | #include "transform_convert.h" | ||||
| /** Used for NLA transform (stored in #TransData.extra pointer). */ | /** Used for NLA transform (stored in #TransData.extra pointer). */ | ||||
| typedef struct TransDataNla { | typedef struct TransDataNla { | ||||
| ▲ Show 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | for (ale = anim_data.first; ale; ale = ale->next) { | ||||
| /* make sure strips are in order again */ | /* make sure strips are in order again */ | ||||
| BKE_nlatrack_sort_strips(nlt); | BKE_nlatrack_sort_strips(nlt); | ||||
| /* remove the temp metas */ | /* remove the temp metas */ | ||||
| BKE_nlastrips_clear_metas(&nlt->strips, 0, 1); | BKE_nlastrips_clear_metas(&nlt->strips, 0, 1); | ||||
| } | } | ||||
| /* General refresh for the outliner because the following might have happened: | |||||
| * - strips moved between tracks | |||||
| * - strips swapped order | |||||
| * - duplicate-move moves to different track. */ | |||||
| WM_event_add_notifier(C, NC_ANIMATION | ND_NLA | NA_ADDED, NULL); | |||||
| /* free temp memory */ | /* free temp memory */ | ||||
| ANIM_animdata_freelist(&anim_data); | ANIM_animdata_freelist(&anim_data); | ||||
| /* perform after-transfrom validation */ | /* perform after-transfrom validation */ | ||||
Severin: Wouldn't keep this in. | |||||
| ED_nla_postop_refresh(&ac); | ED_nla_postop_refresh(&ac); | ||||
| } | } | ||||
| } | } | ||||
Not Done Inline Actionsstripe GuiltyGhost: stripe | |||||
| /** \} */ | /** \} */ | ||||
Wouldn't keep this in.