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:
authorSybren A. Stüvel <sybren@stuvel.eu>2017-04-11 15:07:26 +0300
committerSybren A. Stüvel <sybren@stuvel.eu>2017-04-12 13:21:00 +0300
commitde3c98d62b1ec8e9ad9ea01cb85d47064751ba24 (patch)
tree4fdef9705561f7e68375451b3727935ddb6abbce
parent4560f0b007db592e386c1829caf0c1a52a48c584 (diff)
Alembic export: removed superfluous export_object() check.
The exploreTransform() function already does this check, and the check isn't necessary when the object type isn't exported anyway.
-rw-r--r--source/blender/alembic/intern/abc_exporter.cc22
1 files changed, 10 insertions, 12 deletions
diff --git a/source/blender/alembic/intern/abc_exporter.cc b/source/blender/alembic/intern/abc_exporter.cc
index ec9504a2f3a..76167fc435d 100644
--- a/source/blender/alembic/intern/abc_exporter.cc
+++ b/source/blender/alembic/intern/abc_exporter.cc
@@ -349,18 +349,16 @@ void AbcExporter::createTransformWritersHierarchy(EvaluationContext *eval_ctx)
while (base) {
Object *ob = base->object;
- if (export_object(&m_settings, ob)) {
- switch (ob->type) {
- case OB_LAMP:
- case OB_LATTICE:
- case OB_MBALL:
- case OB_SPEAKER:
- /* We do not export transforms for objects of these classes. */
- break;
-
- default:
- exploreTransform(eval_ctx, ob, ob->parent, NULL);
- }
+ switch (ob->type) {
+ case OB_LAMP:
+ case OB_LATTICE:
+ case OB_MBALL:
+ case OB_SPEAKER:
+ /* We do not export transforms for objects of these classes. */
+ break;
+
+ default:
+ exploreTransform(eval_ctx, ob, ob->parent);
}
base = base->next;