diff options
author | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-11 15:59:48 +0300 |
---|---|---|
committer | Sybren A. Stüvel <sybren@stuvel.eu> | 2017-04-13 17:34:37 +0300 |
commit | 3906e5939ab5ce5a1518d16c47cf6289c876aa92 (patch) | |
tree | 81183cd0a103c09e1ed6d697e6f308b0c7f0bfc0 /source/blender/alembic | |
parent | ebb30451140296970af011a15579c52731b610e3 (diff) |
Alembic export: unified code of exploreTransform and exploreObject.
Diffstat (limited to 'source/blender/alembic')
-rw-r--r-- | source/blender/alembic/intern/abc_exporter.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/source/blender/alembic/intern/abc_exporter.cc b/source/blender/alembic/intern/abc_exporter.cc index c58aedd6503..a8d1587abdb 100644 --- a/source/blender/alembic/intern/abc_exporter.cc +++ b/source/blender/alembic/intern/abc_exporter.cc @@ -515,20 +515,17 @@ void AbcExporter::exploreObject(EvaluationContext *eval_ctx, Object *ob, Object ListBase *lb = object_duplilist(eval_ctx, m_scene, ob); if (lb) { - DupliObject *dupliob = static_cast<DupliObject *>(lb->first); + DupliObject *link = static_cast<DupliObject *>(lb->first); - while (dupliob) { + for (; link; link = link->next) { /* This skips things like custom bone shapes. */ - if (m_settings.renderable_only && dupliob->no_draw) { - dupliob = dupliob->next; + if (m_settings.renderable_only && link->no_draw) { continue; } - if (dupliob->type == OB_DUPLIGROUP) { - exploreObject(eval_ctx, dupliob->ob, ob); + if (link->type == OB_DUPLIGROUP) { + exploreObject(eval_ctx, link->ob, ob); } - - dupliob = dupliob->next; } } |