Commit: e7c7707ca9a876f123511b548a742ca9373e19b9
Author: Sybren A. Stüvel
Date:   Fri Nov 29 14:09:16 2019 +0100
Branches: master
https://developer.blender.org/rBe7c7707ca9a876f123511b548a742ca9373e19b9

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'.

===================================================================

M       source/blender/alembic/intern/abc_transform.cc

===================================================================

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);
 }
 
 /* ************************************************************************** 
*/

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to