diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-08-14 20:13:35 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-08-14 20:13:35 +0400 |
commit | fc0a5ede01d9db29471c495b18f47c0e8864e518 (patch) | |
tree | 2e636190feeb09efadb035708d2b82561012a185 /source/blender/collada/AnimationExporter.cpp | |
parent | b8473d70e2da98c90c0c085ba3e38d4e327c0d9b (diff) |
Cleanup
Diffstat (limited to 'source/blender/collada/AnimationExporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationExporter.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/source/blender/collada/AnimationExporter.cpp b/source/blender/collada/AnimationExporter.cpp index ecaa05e3497..a777f4ae984 100644 --- a/source/blender/collada/AnimationExporter.cpp +++ b/source/blender/collada/AnimationExporter.cpp @@ -1016,7 +1016,7 @@ void AnimationExporter::exportAnimations(Scene *sce) tm_name = "fall_off_exponent"; break; case 4: - tm_name = "blender_dist"; + tm_name = "blender/blender_dist"; break; default: @@ -1137,30 +1137,6 @@ void AnimationExporter::exportAnimations(Scene *sce) return dot ? (dot + 1) : rna_path; } - void AnimationExporter::find_all_frames(Object *ob, std::vector<float> &fra) - { - FCurve *fcu= (FCurve*)ob->adt->action->curves.first; - std::vector<float> keys; - for (unsigned int i = 0; i < fcu->totvert; i++) { - float f = fcu->bezt[i].vec[1][0]; // - if (std::find(keys.begin(), keys.end(), f) == keys.end()) - keys.push_back(f); - } - - std::sort(keys.begin(), keys.end()); - float first, last; - std::vector<float>::reference ref = keys.front(); - first = ref; - ref = keys.back(); - last = ref; - for (float i = first ; i != last ; i+=1.0f ) - { - fra.push_back(i); - } - return; - - } - void AnimationExporter::find_frames(Object *ob, std::vector<float> &fra) { FCurve *fcu= (FCurve*)ob->adt->action->curves.first; |