From baa8b7eb498ebb0bba4d49544a5a7f6140dcf5c8 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Wed, 29 Jun 2022 20:40:36 -0400 Subject: [PATCH] Fix #332. --- korman/exporter/material.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/korman/exporter/material.py b/korman/exporter/material.py index 212dcf0..36feec2 100644 --- a/korman/exporter/material.py +++ b/korman/exporter/material.py @@ -1007,7 +1007,10 @@ class MaterialConverter: value = func(x, y, width, height) pixels[offset:offset+4] = (value,) * 4 image = bpy.data.images.new(filename, width=width, height=height, alpha=True) + image.source = "GENERATED" image.pixels = pixels + image.update() + image.pack(True) self.export_prepared_image(image=image, owner=owner, allowed_formats={"BMP"}, alpha_type=TextureAlpha.full, indent=indent, ephemeral=True)