From dd7b9a362d9e362f81825bfa05f06741e9c1323b Mon Sep 17 00:00:00 2001 From: Gaia Clary Date: Sat, 24 Feb 2018 13:11:30 +0100 Subject: T45687: Rework the Export/Import of Animations This started with a fix for an animated Object Hierarchy. Then i decided to cleanup and optimize a bit. But at the end this has become a more or less full rewrite of the Animation Exporter. All of this happened in a separate local branch and i have retained all my local commits to better see what i have done. Brief description: * I fixed a few issues with exporting keyframed animations of object hierarchies where the objects have parent inverse matrices which differ from the Identity matrix. * I added the option to export sampled animations with a user defined sampling rate (new user interface option) * I briefly tested Object Animations and Rig Animations. What is still needed: * Cleanup the code * Optimize the user interface * Do the Documentation Reviewers: mont29 Reviewed By: mont29 Differential Revision: https://developer.blender.org/D3070 --- source/blender/collada/collada_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/blender/collada/collada_utils.h') diff --git a/source/blender/collada/collada_utils.h b/source/blender/collada/collada_utils.h index e9066d7db46..8b5903b9746 100644 --- a/source/blender/collada/collada_utils.h +++ b/source/blender/collada/collada_utils.h @@ -63,6 +63,9 @@ extern "C" { typedef std::map > TexIndexTextureArrayMap; +extern Main *bc_get_main(); +extern EvaluationContext *bc_get_evaluation_context(); + extern float bc_get_float_value(const COLLADAFW::FloatOrDoubleArray& array, unsigned int index); extern int bc_test_parent_loop(Object *par, Object *ob); extern int bc_set_parent(Object *ob, Object *par, bContext *C, bool is_parent_space = true); -- cgit v1.2.3