]> git.tdb.fi Git - libs/gl.git/blobdiff - source/animation/animationplayer.cpp
Use emplace_back when a new object is being constructed
[libs/gl.git] / source / animation / animationplayer.cpp
index 42605beaf8c1d86ce1bfb772293a126de8b80c2f..44b8e466542b61fa573d9336ab5dc1f6724bfc6f 100644 (file)
@@ -31,7 +31,7 @@ AnimationPlayer::Target &AnimationPlayer::play_(Placeable &obj, const Animation
        target.stacked = stacked;
        // TODO check for incompatible armature
        target.armature = anim.get_armature();
-       target.animations.push_back(PlayingAnimation(anim, speed));
+       target.animations.emplace_back(anim, speed);
        return target;
 }