Browse Source

Fix #143.

Explanation: The JPEG format in plMipmap does not have to be an actual
JPEG image, it can also hold an RLE bitmap. libHSPlasma currently does
not attempt to compress any images held as uncompressed data and marked
JPEG, rather, it exports them as RLE maps. Maybe a bit odd, but it
works. I guess.
pull/164/head
Adam Johnson 5 years ago
parent
commit
47ad9c89fe
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 3
      korman/properties/modifiers/render.py

3
korman/properties/modifiers/render.py

@ -248,7 +248,8 @@ class PlasmaLightMapGen(idprops.IDPropMixin, PlasmaModifierProperties, PlasmaMod
# Mmm... cheating
mat_mgr.export_prepared_image(owner=layer, image=lightmap_im,
allowed_formats={"PNG", "DDS"},
allowed_formats={"PNG", "JPG"},
extension="hsm",
ephemeral=True,
indent=2)

Loading…
Cancel
Save