Blender Git Loki

Git Commits -> Revision 5b845ea

Revision 5b845ea by Gaia Clary (collada2.8)
August 2, 2018, 17:16 (GMT)
Refactor Collada: Make BCAnimation class more self contained

Follwing funtionality was previously located in
BCAnimationSampler, but makes not much sense there:

* Moved the creation of the reference object into the Class constructor
* Moved the destruction of the reference to the Destructor

Furthermore:

* added get_reference() to better shield the rerference object from
unintentional access
* BCAnimationObjectMap now contains Pointers to BCAnimation objects
instead of containing full object instances. This avoids unnecessary
copying of the Animation datastructures when adding BCAnimation objects
to the BCAnimationObjectMap. Note: This forces us to delete the BCAnimation
objects in the BCAnimationSampler destructor.

Commit Details:

Full Hash: 5b845ea1048394140405b0e7e3966a813fece3c6
Parent Commit: d79c5ec
Lines Changed: +35, -17

2 Modified Paths:

/source/blender/collada/BCAnimationSampler.cpp (+11, -15) (Diff)
/source/blender/collada/BCAnimationSampler.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