import os
-import base64
-import codecs
+import bpy
def pixels_to_rgba(pixels):
return (int(p*255) for p in pixels)
invert_mask = sum(1<<i for i, c in enumerate(channels) if c[0]=='~')
- from .util import basename
- fn = basename(image.filepath)
+ fn = bpy.path.basename(image.filepath)
if not invert_mask and fn:
if not tex_node.use_mipmap:
tex_res.statements.append(Statement("mipmap_levels", 1))