private void reloadAtlas() {
        dialogFactory.showDialogLoading(() -> Gdx.app.postRunnable(() -> {
            try {
                FileHandle defaultsFile = Main.appFolder.child("texturepacker/atlas-internal-settings.json");
                projectData.getAtlasData().writeAtlas(defaultsFile);
                projectData.getAtlasData().atlasCurrent = true;
                atlasData.produceAtlas();
                sortBySelectedMode();
            } catch (Exception e) {
                dialogFactory.showDialogError("Error", "Unable to write texture atlas to temporary storage!", null);
                Gdx.app.error(getClass().getName(), "Unable to write texture atlas to temporary storage!", e);
                dialogFactory.showDialogError("Atlas Error...",
                        "Unable to write texture atlas to temporary storage.\n\nOpen log?");
            }
        }));
    }
Recreates the drawables array only including visible drawables.
core/src/com/ray3k/skincomposer/dialog/DialogDrawables.java