[Bf-blender-cvs] [de3c98d62b1] master: Alembic export: removed superfluous export_object() check.

Sybren A. Stüvel noreply at git.blender.org
Wed Apr 12 12:27:50 CEST 2017


Commit: de3c98d62b1ec8e9ad9ea01cb85d47064751ba24
Author: Sybren A. Stüvel
Date:   Tue Apr 11 14:07:26 2017 +0200
Branches: master
https://developer.blender.org/rBde3c98d62b1ec8e9ad9ea01cb85d47064751ba24

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.

===================================================================

M	source/blender/alembic/intern/abc_exporter.cc

===================================================================

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;




More information about the Bf-blender-cvs mailing list