From 41b4b8ded6134904a0a2e26ee67985396299a192 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Tue, 5 Dec 2017 17:14:55 +1300 Subject: Cleanup/Style Tweaks to fit rest of code --- source/blender/blenkernel/intern/anim_sys.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'source/blender/blenkernel/intern/anim_sys.c') diff --git a/source/blender/blenkernel/intern/anim_sys.c b/source/blender/blenkernel/intern/anim_sys.c index 64b33326aa9..2e0496b61d7 100644 --- a/source/blender/blenkernel/intern/anim_sys.c +++ b/source/blender/blenkernel/intern/anim_sys.c @@ -798,8 +798,7 @@ static void nlastrips_path_rename_fix(ID *owner_id, const char *prefix, const ch } } -/* ----------------------- */ - +/* Rename Sub-ID Entities in RNA Paths ----------------------- */ /* Fix up the given RNA-Path * @@ -945,8 +944,7 @@ void BKE_animdata_fix_paths_rename(ID *owner_id, AnimData *adt, ID *ref_id, cons MEM_freeN(newN); } -/* *************************** */ -/* remove of individual paths */ +/* Remove FCurves with Prefix -------------------------------------- */ /* Check RNA-Paths for a list of F-Curves */ static void fcurves_path_remove_fix(const char *prefix, ListBase *curves) @@ -974,7 +972,6 @@ static void nlastrips_path_remove_fix(const char *prefix, ListBase *strips) /* recursively check strips, fixing only actions... */ for (strip = strips->first; strip; strip = strip->next) { - /* fix strip's action */ if (strip->act) fcurves_path_remove_fix(prefix, &strip->act->curves); @@ -997,7 +994,6 @@ void BKE_animdata_fix_paths_remove(ID *id, const char *prefix) /* check if there's any AnimData to start with */ if (adt) { - /* free fcurves */ if (adt->action) fcurves_path_remove_fix(prefix, &adt->action->curves); -- cgit v1.2.3