From 9dcae4eb17d7b5a90fda43d0abab1636acf42851 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 9 Sep 2020 13:52:37 +0200 Subject: Refactor getting constraints This is the refactoring part of D8805 (should be no functional changes). - exposes pose-related part of former 'get_constraints()' from interface_templates.c to new ED_object_pose_constraint_list - rename ED_object_constraint_list_from_context --> ED_object_constraint_active_list Also clarify comments on both of these. ref T80464 ref https://developer.blender.org/D8805 --- source/blender/io/collada/BCAnimationSampler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/io') diff --git a/source/blender/io/collada/BCAnimationSampler.cpp b/source/blender/io/collada/BCAnimationSampler.cpp index a27bb10f705..b8df98e8acb 100644 --- a/source/blender/io/collada/BCAnimationSampler.cpp +++ b/source/blender/io/collada/BCAnimationSampler.cpp @@ -271,7 +271,7 @@ void BCAnimationSampler::find_depending_animated(std::set &animated_ob std::set::iterator it; for (it = candidates.begin(); it != candidates.end(); ++it) { Object *cob = *it; - ListBase *conlist = ED_object_constraint_list_from_context(cob); + ListBase *conlist = ED_object_constraint_active_list(cob); if (is_animated_by_constraint(cob, conlist, animated_objects)) { animated_objects.insert(cob); candidates.erase(cob); -- cgit v1.2.3