Alembic export UI: avoid displaying empty box.
authorKévin Dietrich <kevin.dietrich@mailoo.org>
Sat, 20 Aug 2016 07:30:38 +0000 (09:30 +0200)
committerKévin Dietrich <kevin.dietrich@mailoo.org>
Sat, 20 Aug 2016 07:30:38 +0000 (09:30 +0200)
source/blender/editors/io/io_alembic.c

index 96a3ef1f2f6ba92e9d721c79be07a97c524aaab3..cd75983e0a041caf99e55c0c8f9963dde45ce7ac 100644 (file)
@@ -132,10 +132,11 @@ static int wm_alembic_export_exec(bContext *C, wmOperator *op)
 
 static void ui_alembic_export_settings(uiLayout *layout, PointerRNA *imfptr)
 {
-       uiLayout *box = uiLayoutBox(layout);
+       uiLayout *box;
        uiLayout *row;
 
 #ifdef WITH_ALEMBIC_HDF5
+       box = uiLayoutBox(layout);
        row = uiLayoutRow(box, false);
        uiItemL(row, IFACE_("Archive Options:"), ICON_NONE);