Blender Git Loki

Git Commits -> Revision 02f0b09

Revision 02f0b09 by Gaia Clary (collada2.8)
August 2, 2018, 12:34 (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: 02f0b0932986680731aaa663162b1a060334c084
Parent Commit: 9e4929b
Lines Changed: +1398, -2

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 Modified Paths:

/source/blender/collada/collada_utils.cpp (+18, -0) (Diff)
/source/blender/collada/collada_utils.h (+24, -2) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021