Blender Git Loki

Git Commits -> Revision 6e7fbcf

Revision 6e7fbcf by Gaia Clary
April 19, 2018, 20:14 (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: 6e7fbcfbd1a7248ac2232ec59ab775efe4806657
Parent Commit: 3f58e82
Lines Changed: +33, -17

2 Modified Paths:

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