Blender Git Commit Log

Git Commits -> Revision a646d1d

Revision a646d1d by Gaia Clary
March 11, 2018, 20:07 (GMT)
Refactor Collada: Moved Classes into separate files

Renamed AnimationCurveCache to BCAnimationCurveContainer
because this is really not a cache but just a set of Data that
prepares the export of FCurves. This container only lives during
export and is otherwiose not used for anything else.

The BCAnimationCurveContainer is not depending on Collada in any way.
Theoretically it could be used also from Python, but this is another story.

Additions in more detail:

Classes:

* BCAnimationCurve
a wrapper for handling FCurves tied to an object within the
Animation Exporter

* BCAnimationCurveContainer
A container to keep all FCurves in one place. It also maintains
creation and deletion of temporary FCurves needed to export data
without interfering with the User's production data in Blender.

* BCMatrix
Handy class for making float mat[4][4] a primetime resident in
the code. Not necessary but nice.

Support functions:

* bc_get_children(std::vector<Object *> &child_set, Object *ob, Scene *scene)
returns the immediate children of an object into a set

* bc_string_after(const std::string& s, const char c)
returns the string after the last occurance of char

* bc_startswith(std::string const & value, std::string const & starting)
returns true if the string starts with the starting sequence

* bc_endswith(std::string const & value, std::string const & ending)
returns true if the string ends with the ending sequence

Commit Details:

Full Hash: a646d1d4aae116c1b5c0555d5b978b4fe710c954
Parent Commit: c76bbaf
Lines Changed: +1396, -518

6 Added Paths:

/source/blender/collada/BCAnimationCurve.cpp (+303, -0) (View)
/source/blender/collada/BCAnimationCurve.h (+109, -0) (View)
/source/blender/collada/BCAnimationCurveContainer.cpp (+610, -0) (View)
/source/blender/collada/BCAnimationCurveContainer.h (+113, -0) (View)
/source/blender/collada/BCMatrix.cpp (+162, -0) (View)
/source/blender/collada/BCMatrix.h (+59, -0) (View)

2 Deleted Paths:

/source/blender/collada/AnimationCurveCache.cpp (+0, -390)
/source/blender/collada/AnimationCurveCache.h (+0, -128)

2 Modified Paths:

/source/blender/collada/collada_utils.cpp (+18, -0) (Diff)
/source/blender/collada/collada_utils.h (+22, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021