Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/io/collada/AnimationImporter.cpp')
-rw-r--r--source/blender/io/collada/AnimationImporter.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/source/blender/io/collada/AnimationImporter.cpp b/source/blender/io/collada/AnimationImporter.cpp
index 2e7977d89bb..77ccdeae28d 100644
--- a/source/blender/io/collada/AnimationImporter.cpp
+++ b/source/blender/io/collada/AnimationImporter.cpp
@@ -18,7 +18,7 @@
* \ingroup collada
*/
-#include <stddef.h>
+#include <cstddef>
/* COLLADABU_ASSERT, may be able to remove later */
#include "COLLADABUPlatform.h"
@@ -272,9 +272,8 @@ void AnimationImporter::add_fcurves_to_object(Main *bmain,
AnimationImporter::~AnimationImporter()
{
/* free unused FCurves */
- for (std::vector<FCurve *>::iterator it = unused_curves.begin(); it != unused_curves.end();
- it++) {
- BKE_fcurve_free(*it);
+ for (FCurve *unused_curve : unused_curves) {
+ BKE_fcurve_free(unused_curve);
}
if (!unused_curves.empty()) {
@@ -2035,8 +2034,8 @@ bool AnimationImporter::evaluate_animation(COLLADAFW::Transformation *tm,
COLLADABU::Math::Matrix4 matrix;
int mi = 0, mj = 0;
- for (std::vector<FCurve *>::iterator it = curves.begin(); it != curves.end(); it++) {
- matrix.setElement(mi, mj, evaluate_fcurve(*it, fra));
+ for (FCurve *curve : curves) {
+ matrix.setElement(mi, mj, evaluate_fcurve(curve, fra));
mj++;
if (mj == 4) {
mi++;