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.
This commit is contained in:
@@ -349,18 +349,16 @@ void AbcExporter::createTransformWritersHierarchy(EvaluationContext *eval_ctx)
|
|||||||
while (base) {
|
while (base) {
|
||||||
Object *ob = base->object;
|
Object *ob = base->object;
|
||||||
|
|
||||||
if (export_object(&m_settings, ob)) {
|
switch (ob->type) {
|
||||||
switch (ob->type) {
|
case OB_LAMP:
|
||||||
case OB_LAMP:
|
case OB_LATTICE:
|
||||||
case OB_LATTICE:
|
case OB_MBALL:
|
||||||
case OB_MBALL:
|
case OB_SPEAKER:
|
||||||
case OB_SPEAKER:
|
/* We do not export transforms for objects of these classes. */
|
||||||
/* We do not export transforms for objects of these classes. */
|
break;
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
exploreTransform(eval_ctx, ob, ob->parent, NULL);
|
exploreTransform(eval_ctx, ob, ob->parent);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
base = base->next;
|
base = base->next;
|
||||||
|
Reference in New Issue
Block a user