From 7509d0bbf1f24e0c6ac519f807d4210c9befe94f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Thu, 11 Apr 2019 14:56:32 +0200 Subject: Alembic export: always consider metaballs animated The metaball 'mesh' is animated whenever any of its components are animated. However, it's not easily possible to visit all its components (AFAIK it requires a full scan of all objects in the scene and comparing names), so due to the blobby nature of the metaballs I now simply assume they'll be animated. This fixes an issue where a metaball was considered static when the base ball was static. For example, MBall static but MBall.001 animated would be considered 'not animated'. --- source/blender/alembic/intern/abc_mball.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'source/blender') diff --git a/source/blender/alembic/intern/abc_mball.cc b/source/blender/alembic/intern/abc_mball.cc index d31c251f64d..d023150106b 100644 --- a/source/blender/alembic/intern/abc_mball.cc +++ b/source/blender/alembic/intern/abc_mball.cc @@ -67,15 +67,7 @@ AbcMBallWriter::~AbcMBallWriter() bool AbcMBallWriter::isAnimated() const { - MetaBall *mb = static_cast(m_object->data); - if (mb->adt != NULL) return true; - - /* Any movement of any object in the parent chain - * could cause the mball to deform. */ - for (Object *ob = m_object; ob != NULL; ob = ob->parent) { - if (ob->adt != NULL) return true; - } - return false; + return true; } void AbcMBallWriter::do_write() -- cgit v1.2.3