From e7c7707ca9a876f123511b548a742ca9373e19b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Fri, 29 Nov 2019 14:09:16 +0100 Subject: 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'. --- source/blender/alembic/intern/abc_transform.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/alembic') 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); } /* ************************************************************************** */ -- cgit v1.2.3