Browse Source

Fix single-face cube map issue.

If a cube map's image filename did not contain a `_` character, then a
traceback was triggered.
pull/268/head
Adam Johnson 3 years ago
parent
commit
8c15794dac
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 1
      korman/operators/op_image.py

1
korman/operators/op_image.py

@ -131,6 +131,7 @@ class PlasmaBuildCubeMapOperator(ImageOperator, bpy.types.Operator):
files.append(None) files.append(None)
self._report.progress_increment() self._report.progress_increment()
return tuple(files) return tuple(files)
return [None] * 6
def _generate_cube_map(self, req_name, face_width, face_height, face_data): def _generate_cube_map(self, req_name, face_width, face_height, face_data):
self._report.progress_advance() self._report.progress_advance()

Loading…
Cancel
Save