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-06-15 00:42:01 +0400
committerSukhitha Prabhath Jayathilake <pr.jayathilake@gmail.com>2011-06-15 00:42:01 +0400
commitf3f3bcc45e701fac4abcfb68a2bbc60e06e6a9f4 (patch)
tree8d9d665c6aa6c9824d5bcbbce42e85252394ba63 /source/blender/collada/AnimationImporter.h
parentd8974a60f6811faa2872b55eda41b03387614ed1 (diff)
New Animation Import system. Only Mesh object animation import support implemented for now.
Diffstat (limited to 'source/blender/collada/AnimationImporter.h')
-rw-r--r--source/blender/collada/AnimationImporter.h23
1 files changed, 21 insertions, 2 deletions
diff --git a/source/blender/collada/AnimationImporter.h b/source/blender/collada/AnimationImporter.h
index 05347a1fbc1..08addc987ba 100644
--- a/source/blender/collada/AnimationImporter.h
+++ b/source/blender/collada/AnimationImporter.h
@@ -94,16 +94,35 @@ public:
#if 0
virtual void change_eul_to_quat(Object *ob, bAction *act);
#endif
+
+ void translate_Animations_NEW ( COLLADAFW::Node * Node ,
+ std::map<COLLADAFW::UniqueId, COLLADAFW::Node*>& root_map,
+ std::map<COLLADAFW::UniqueId, Object*>& object_map );
+ bool is_object_animated ( const Object *ob , const COLLADAFW::Node * node ) ;
+
+
+ void Assign_transform_animations(std::vector<float>* frames,
+ COLLADAFW::Transformation* transform ,
+ const COLLADAFW::AnimationList::AnimationBinding * binding,
+ std::vector<FCurve*>* curves, bool is_joint, char * joint_path);
+
+ /*void Assign_transform_animations(std::vector<float>* frames,
+ COLLADAFW::Transformation *transform ,
+ COLLADAFW::AnimationList::AnimationBinding * binding,
+ COLLADAFW::Node * node);*/
+ void modify_fcurve(std::vector<FCurve*>* curves , char* rna_path , int array_index );
// prerequisites:
// animlist_map - map animlist id -> animlist
// curve_map - map anim id -> curve(s)
- Object *translate_animation(COLLADAFW::Node *node,
+ Object * translate_animation(COLLADAFW::Node *node,
std::map<COLLADAFW::UniqueId, Object*>& object_map,
std::map<COLLADAFW::UniqueId, COLLADAFW::Node*>& root_map,
COLLADAFW::Transformation::TransformationType tm_type,
Object *par_job = NULL);
-
+
+ void find_frames( std::vector<float>* frames , std::vector<FCurve*>* curves );
+ void find_frames_old( std::vector<float>* frames, COLLADAFW::Node * node, COLLADAFW::Transformation::TransformationType tm_type );
// internal, better make it private
// warning: evaluates only rotation
// prerequisites: animlist_map, curve_map