X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fanimation%2Fanimation.cpp;h=76d9552e1771530945f6f7bba02f79b70064b979;hp=a9278e3de00836b3eb9e2ebe56ff908e2da207ed;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=e9a898f315b5d1396f196d785913a283c30940f2 diff --git a/source/animation/animation.cpp b/source/animation/animation.cpp index a9278e3d..76d9552e 100644 --- a/source/animation/animation.cpp +++ b/source/animation/animation.cpp @@ -16,11 +16,6 @@ using namespace std; namespace Msp { namespace GL { -Animation::Animation(): - armature(0), - looping(false) -{ } - Animation::~Animation() { for(TimedKeyFrame &k: keyframes) @@ -489,23 +484,12 @@ Matrix Animation::Iterator::get_pose_matrix(unsigned link) const } -Animation::Loader::Loader(Animation &a): - DataFile::CollectionObjectLoader(a, 0) -{ - init(); -} - -Animation::Loader::Loader(Animation &a, Collection &c): - DataFile::CollectionObjectLoader(a, &c) +Animation::Loader::Loader(Animation &a, Collection *c): + DataFile::CollectionObjectLoader(a, c), + start_slope(1), + end_slope(1), + slopes_set(0) { - init(); -} - -void Animation::Loader::init() -{ - start_slope = 1; - end_slope = 1; - slopes_set = 0; add("armature", &Animation::armature); add("control_keyframe", &Loader::control_keyframe); add("control_keyframe", &Loader::control_keyframe_inline);