From cdbb904b32a859a1b3a65dbe79057248f4425832 Mon Sep 17 00:00:00 2001 From: Sukhitha Prabhath Jayathilake Date: Fri, 26 Aug 2011 15:16:27 +0000 Subject: code review fixes --- source/blender/collada/AnimationImporter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender/collada/AnimationImporter.cpp') diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp index ee04c270843..4a3cd5eeb06 100644 --- a/source/blender/collada/AnimationImporter.cpp +++ b/source/blender/collada/AnimationImporter.cpp @@ -179,7 +179,6 @@ void AnimationImporter::fcurve_deg_to_rad(FCurve *cu) cu->bezt[i].vec[1][1] *= M_PI / 180.0f; cu->bezt[i].vec[0][1] *= M_PI / 180.0f; cu->bezt[i].vec[2][1] *= M_PI / 180.0f; - cu->bezt[i].vec[1][0]; } } @@ -439,7 +438,7 @@ void AnimationImporter::modify_fcurve(std::vector* curves , char* rna_p int i; for (it = curves->begin(), i = 0; it != curves->end(); it++, i++) { FCurve *fcu = *it; - fcu->rna_path = BLI_strdupn(rna_path, strlen(rna_path)); + fcu->rna_path = BLI_strdup(rna_path); if (array_index == -1) fcu->array_index = i; else fcu->array_index = array_index; -- cgit v1.2.3