From 66fed07bcbd10aa3d6dbb09eb3a6feb0bf727079 Mon Sep 17 00:00:00 2001 From: McHorse Date: Tue, 30 Apr 2024 16:10:44 +0100 Subject: [PATCH] BBS model exporter: Fix faces exporting when they are disabled --- plugins.json | 2 +- plugins/bbs_exporter.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins.json b/plugins.json index 07b15ae5..0970eb75 100644 --- a/plugins.json +++ b/plugins.json @@ -759,7 +759,7 @@ "icon": "fa-file-export", "author": "McHorse", "description": "Adds actions to export/import models in BBS format, which is used by BBS machinima studio.", - "version": "1.2.0", + "version": "1.2.1", "variant": "both", "tags": ["Exporter"] }, diff --git a/plugins/bbs_exporter.js b/plugins/bbs_exporter.js index 7a57b4f9..6d3578f7 100644 --- a/plugins/bbs_exporter.js +++ b/plugins/bbs_exporter.js @@ -109,7 +109,7 @@ { var face = c.faces[key]; - if (face) + if (face && face.texture) { var uv = face.uv.slice(); @@ -585,7 +585,7 @@ author: "McHorse", description: "Adds actions to export/import models in BBS format, which is used by BBS machinima studio.", icon: "fa-file-export", - version: "1.2.0", + version: "1.2.1", variant: "both", onload() { exportAction = new Action("bbs_exporter", {