diff options
author | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-27 22:38:44 +0400 |
---|---|---|
committer | Sukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com> | 2011-07-27 22:38:44 +0400 |
commit | 4a32691416a3069e468bee81c862ccb77fce0556 (patch) | |
tree | 9a15e54d18e74caaa332b181c178e88d9f7bdcd8 /source/blender/collada/AnimationImporter.cpp | |
parent | 41216990dc1e8807661c267a361d4ce02724839f (diff) |
Material diffuse color animation COLLADA export.
Diffstat (limited to 'source/blender/collada/AnimationImporter.cpp')
-rw-r--r-- | source/blender/collada/AnimationImporter.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/source/blender/collada/AnimationImporter.cpp b/source/blender/collada/AnimationImporter.cpp index 60c0308a7bc..3e56b3fb57e 100644 --- a/source/blender/collada/AnimationImporter.cpp +++ b/source/blender/collada/AnimationImporter.cpp @@ -844,33 +844,21 @@ void AnimationImporter::translate_Animations_NEW ( COLLADAFW::Node * node , { const COLLADAFW::Color *col = &(light->getColor()); const COLLADAFW::UniqueId& listid = col->getAnimationList(); - //transformation has animations - //const COLLADAFW::AnimationList *animlist = animlist_map[listid]; - //const COLLADAFW::AnimationList::AnimationBindings& bindings = animlist->getAnimationBindings(); - ////all the curves belonging to the current binding - //std::vector<FCurve*> animcurves; - //for (unsigned int j = 0; j < bindings.getCount(); j++) { - // animcurves = curve_map[bindings[j].animation]; - // //calculate rnapaths and array index of fcurves according to transformation and animation class + Assign_color_animations(listid, AnimCurves, "color"); - - //std::vector<FCurve*>::iterator iter; - ////Add the curves of the current animation to the object - //for (iter = animcurves.begin(); iter != animcurves.end(); iter++) { - // FCurve * fcu = *iter; - // BLI_addtail(AnimCurves, fcu); - //} } if ((animType->light & LIGHT_FOA) != 0 ) { const COLLADAFW::AnimatableFloat *foa = &(light->getFallOffAngle()); const COLLADAFW::UniqueId& listid = foa->getAnimationList(); + Assign_float_animations( listid ,AnimCurves, "spot_size"); } if ( (animType->light & LIGHT_FOE) != 0 ) { const COLLADAFW::AnimatableFloat *foe = &(light->getFallOffExponent()); const COLLADAFW::UniqueId& listid = foe->getAnimationList(); + Assign_float_animations( listid ,AnimCurves, "spot_blend"); } |