diff options
author | Jacques Lucke <jacques@blender.org> | 2020-07-03 15:59:27 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-07-03 15:59:27 +0300 |
commit | 2633683b52054d15006aea1314f62f73a8505b42 (patch) | |
tree | a97b2916170b53f04fc9a898f4eedb527f14f84e /source/blender/io/collada/BCAnimationSampler.cpp | |
parent | 93da09d717ff4502975c506c574faf0c07f010b4 (diff) |
Clang-tidy: enable readability-container-size-empty warning
Reviewers: sergey
Differential Revision: https://developer.blender.org/D8197
Diffstat (limited to 'source/blender/io/collada/BCAnimationSampler.cpp')
-rw-r--r-- | source/blender/io/collada/BCAnimationSampler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/io/collada/BCAnimationSampler.cpp b/source/blender/io/collada/BCAnimationSampler.cpp index 4aea74cd82f..f44e3e8385d 100644 --- a/source/blender/io/collada/BCAnimationSampler.cpp +++ b/source/blender/io/collada/BCAnimationSampler.cpp @@ -78,7 +78,7 @@ void BCAnimationSampler::add_object(Object *ob) BCAnimationCurveMap *BCAnimationSampler::get_curves(Object *ob) { BCAnimation &animation = *objects[ob]; - if (animation.curve_map.size() == 0) { + if (animation.curve_map.empty()) { initialize_curves(animation.curve_map, ob); } return &animation.curve_map; @@ -279,7 +279,7 @@ void BCAnimationSampler::find_depending_animated(std::set<Object *> &animated_ob break; } } - } while (found_more && candidates.size() > 0); + } while (found_more && !candidates.empty()); } void BCAnimationSampler::get_animated_from_export_set(std::set<Object *> &animated_objects, |