[Bf-blender-cvs] [826be7cd3f2] temp-sybren-abc-groupexport: Alembic export: unified code of exploreTransform and exploreObject.

Sybren A. Stüvel noreply at git.blender.org
Tue Apr 11 17:28:02 CEST 2017


Commit: 826be7cd3f267ff38efa940b05c41115d122c410
Author: Sybren A. Stüvel
Date:   Tue Apr 11 14:59:48 2017 +0200
Branches: temp-sybren-abc-groupexport
https://developer.blender.org/rB826be7cd3f267ff38efa940b05c41115d122c410

Alembic export: unified code of exploreTransform and exploreObject.

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

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 be1a3c87bea..35d5d6d5b85 100644
--- a/source/blender/alembic/intern/abc_exporter.cc
+++ b/source/blender/alembic/intern/abc_exporter.cc
@@ -510,20 +510,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;
 		}
 	}




More information about the Bf-blender-cvs mailing list