Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 749 vs 750 for /trunk/Source Code/Geometry/Animations/Headers/SceneAnimator.h

Diff revisions: vs.
  @@ -106,14 +106,14 @@
106 106
107 107 inline const AnimEvaluator& animationByIndex(I32 animationIndex) const {
108 108 assert(IS_IN_RANGE_INCLUSIVE(animationIndex, 0, to_int(_animations.size()) - 1));
109 - std::shared_ptr<AnimEvaluator> animation = _animations.at(animationIndex);
109 + const std::shared_ptr<AnimEvaluator>& animation = _animations.at(animationIndex);
110 110 assert(animation != nullptr);
111 111 return *animation;
112 112 }
113 113
114 114 inline AnimEvaluator& animationByIndex(I32 animationIndex) {
115 115 assert(IS_IN_RANGE_INCLUSIVE(animationIndex, 0, to_int(_animations.size()) - 1));
116 - std::shared_ptr<AnimEvaluator> animation = _animations[animationIndex];
116 + const std::shared_ptr<AnimEvaluator>& animation = _animations.at(animationIndex);
117 117 assert(animation != nullptr);
118 118 return *animation;
119 119 }