]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation/animation.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / animation / animation.h
index 3d247cf5f74bc0821481fc9a2cdbf10f24a0e8ca..7d55bb61b7be33e01c7ed851fe08111784ad15b6 100644 (file)
@@ -31,10 +31,10 @@ public:
                int slopes_set;
 
        public:
-               Loader(Animation &);
-               Loader(Animation &, Collection &);
+               Loader(Animation &a): Loader(a, 0) { }
+               Loader(Animation &a, Collection &c): Loader(a, &c) { }
        private:
-               void init();
+               Loader(Animation &, Collection *);
                virtual void finish();
 
                void check_slopes_and_control(bool, bool);
@@ -163,16 +163,15 @@ public:
        };
 
 private:
-       const Armature *armature;
+       const Armature *armature = 0;
        std::vector<TimedKeyFrame> keyframes;
        std::vector<Event> events;
-       bool looping;
+       bool looping = false;
        std::vector<UniformInfo> uniforms;
        std::vector<Curve *> curves;
-       unsigned uniform_curve_offset;
+       unsigned uniform_curve_offset = 0;
 
 public:
-       Animation();
        ~Animation();
 
        void set_armature(const Armature &);