Browse Source

Fix potential traceback when raising an error.

pull/282/head
Adam Johnson 3 years ago
parent
commit
8a501811f8
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 4
      korman/exporter/material.py

4
korman/exporter/material.py

@ -652,9 +652,9 @@ class MaterialConverter:
# Sanity check: the image here should be 3x2 faces, so we should not have any
# dam remainder...
if width % 3 != 0:
raise ExportError("CubeMap '{}' width must be a multiple of 3".format(image.name))
raise ExportError("CubeMap '{}' width must be a multiple of 3".format(texture.image.name))
if height % 2 != 0:
raise ExportError("CubeMap '{}' height must be a multiple of 2".format(image.name))
raise ExportError("CubeMap '{}' height must be a multiple of 2".format(texture.image.name))
# According to PlasmaMAX, we don't give a rip about UVs...
layer.UVWSrc = plLayerInterface.kUVWReflect

Loading…
Cancel
Save