Merge branch 'master' into blender2.8
[blender.git] / source / blender / alembic / intern / abc_exporter.cc
index 093c4de085ef42461f97326f7d8edd2c8e6d4d93..dbffcb46790bc5cb603f9f5f4540d4d3cf0128de 100644 (file)
@@ -417,9 +417,9 @@ void AbcExporter::exploreTransform(Depsgraph *depsgraph, Base *ob_base, Object *
                                exploreTransform(depsgraph, &fake_base, dupli_parent, ob);
                        }
                }
-       }
 
-       free_object_duplilist(lb);
+               free_object_duplilist(lb);
+       }
 }
 
 AbcTransformWriter * AbcExporter::createTransformWriter(Depsgraph *depsgraph, Object *ob, Object *parent, Object *dupliObParent)
@@ -527,9 +527,9 @@ void AbcExporter::exploreObject(Depsgraph *depsgraph, Base *ob_base, Object *dup
                                exploreObject(depsgraph, &fake_base, ob);
                        }
                }
-       }
 
-       free_object_duplilist(lb);
+               free_object_duplilist(lb);
+       }
 }
 
 void AbcExporter::createParticleSystemsWriters(Object *ob, AbcTransformWriter *xform)