From: Mikko Rasa Date: Tue, 23 Jun 2020 16:37:40 +0000 (+0300) Subject: Raise an exception if the TBN UV layer is not found during export X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=68488043ee491d117477a458f876e0d3f78e146e;p=libs%2Fgl.git Raise an exception if the TBN UV layer is not found during export --- 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):