Browse Source

Refine coding

* Adjust a few things per Hoikas' suggestion
pull/374/head
Patrick Dulebohn 2 years ago
parent
commit
31064dcd62
  1. 5
      korman/exporter/material.py

5
korman/exporter/material.py

@ -701,9 +701,8 @@ class MaterialConverter:
layer.texture = pl_env.key layer.texture = pl_env.key
def export_cubic_env(self, bo, layer, texture): def export_cubic_env(self, bo, layer, texture):
if texture.image == None: if texture.image is None:
raise ExportError("CubeMap '{}' has no cube image!".format(texture.name)) raise ExportError(f"CubeMap '{texture.name}' has no cube image!")
else:
width, height = texture.image.size width, height = texture.image.size
# Sanity check: the image here should be 3x2 faces, so we should not have any # Sanity check: the image here should be 3x2 faces, so we should not have any

Loading…
Cancel
Save