diff options
author | Sybren A. Stüvel <sybren@blender.org> | 2019-11-29 16:09:16 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@blender.org> | 2019-11-29 16:09:21 +0300 |
commit | e7c7707ca9a876f123511b548a742ca9373e19b9 (patch) | |
tree | 80545809849b00d43642700d8ce45ac737d9be30 /source/blender/alembic/intern/abc_transform.cc | |
parent | be1f4d875fb8001a10886a8577032e0f197827d3 (diff) |
Fix T71986: Alembic: object constraints animation no longer exported
`AbcTransformWriter::hasAnimation` recently became smarter than just
returning `true`, but wasn't quite smart enough yet. Constraints are now
considered a source of 'animation'.
Diffstat (limited to 'source/blender/alembic/intern/abc_transform.cc')
-rw-r--r-- | source/blender/alembic/intern/abc_transform.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/alembic/intern/abc_transform.cc b/source/blender/alembic/intern/abc_transform.cc index 9b12fe86d59..9fc52d71e23 100644 --- a/source/blender/alembic/intern/abc_transform.cc +++ b/source/blender/alembic/intern/abc_transform.cc @@ -27,6 +27,7 @@ extern "C" { #include "DNA_object_types.h" +#include "BLI_listbase.h" #include "BLI_math.h" #include "BKE_animsys.h" @@ -133,7 +134,7 @@ Imath::Box3d AbcTransformWriter::bounds() bool AbcTransformWriter::hasAnimation(Object *ob) const { - return BKE_animdata_id_is_animated(&ob->id); + return !BLI_listbase_is_empty(&ob->constraints) || BKE_animdata_id_is_animated(&ob->id); } /* ************************************************************************** */ |