Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/alembic/intern/abc_transform.cc')
-rw-r--r--source/blender/alembic/intern/abc_transform.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/alembic/intern/abc_transform.cc b/source/blender/alembic/intern/abc_transform.cc
index 505acfc164a..9b12fe86d59 100644
--- a/source/blender/alembic/intern/abc_transform.cc
+++ b/source/blender/alembic/intern/abc_transform.cc
@@ -29,6 +29,7 @@ extern "C" {
#include "BLI_math.h"
+#include "BKE_animsys.h"
#include "BKE_object.h"
#include "DEG_depsgraph_query.h"
@@ -130,10 +131,9 @@ Imath::Box3d AbcTransformWriter::bounds()
return Imath::transform(bounds, m_matrix);
}
-bool AbcTransformWriter::hasAnimation(Object * /*ob*/) const
+bool AbcTransformWriter::hasAnimation(Object *ob) const
{
- /* TODO(kevin): implement this. */
- return true;
+ return BKE_animdata_id_is_animated(&ob->id);
}
/* ************************************************************************** */