From 68488043ee491d117477a458f876e0d3f78e146e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 23 Jun 2020 19:37:40 +0300 Subject: [PATCH] Raise an exception if the TBN UV layer is not found during export --- blender/io_mspgl/mesh.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/blender/io_mspgl/mesh.py b/blender/io_mspgl/mesh.py index 42adabe6..ac3f7c67 100644 --- a/blender/io_mspgl/mesh.py +++ b/blender/io_mspgl/mesh.py @@ -440,6 +440,8 @@ class Mesh: self.compute_tbn(tbn_layer_index, progress) progress.pop_task() prog_step = 2 + else: + raise Exception("TBN UV layer not found") # Split by the remaining UV layers for i, u in enumerate(self.uv_layers): -- 2.45.2