diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2019-04-11 15:56:32 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2019-04-11 17:22:55 +0300 |
commit | 7509d0bbf1f24e0c6ac519f807d4210c9befe94f (patch) | |
tree | 2e7c96913dd81c6ed653492c4d8c07aed0b319b2 /source/blender/alembic | |
parent | 73e06ef25650f298ea926f678ad8446d2146a416 (diff) |
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'.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/abc_mball.cc | 10 |
1 files changed, 1 insertions, 9 deletions
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<MetaBall *>(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() |