Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>2011-08-14 20:13:35 +0400
committerSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>2011-08-14 20:13:35 +0400
commitfc0a5ede01d9db29471c495b18f47c0e8864e518 (patch)
tree2e636190feeb09efadb035708d2b82561012a185 /source/blender/collada
parentb8473d70e2da98c90c0c085ba3e38d4e327c0d9b (diff)
Cleanup
Diffstat (limited to 'source/blender/collada')
-rw-r--r--source/blender/collada/AnimationExporter.cpp26
-rw-r--r--source/blender/collada/AnimationExporter.h2
2 files changed, 1 insertions, 27 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;
diff --git a/source/blender/collada/AnimationExporter.h b/source/blender/collada/AnimationExporter.h
index a4268122333..6cf3207b8a0 100644
--- a/source/blender/collada/AnimationExporter.h
+++ b/source/blender/collada/AnimationExporter.h
@@ -147,8 +147,6 @@ protected:
void find_frames(Object *ob, std::vector<float> &fra, const char *prefix, const char *tm_name);
void find_frames(Object *ob, std::vector<float> &fra);
- void find_all_frames(Object *ob, std::vector<float> &fra);
-
void find_rotation_frames(Object *ob, std::vector<float> &fra, const char *prefix, int rotmode);
// enable fcurves driving a specific bone, disable all the rest