from .datafile import Statement
if prop.texture:
tex_res = resources[prop.texture.image.name+".tex"]
- from .util import basename
return mat_res.create_reference_statement(prop.tex_keyword, tex_res)
elif not prop.keyword:
return
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))