if not tex_node.use_mipmap:
tex_res.statements.append(Statement("mipmap_levels", 1))
srgb = "_srgb" if colorspace=='sRGB' else ""
tex_res.statements.append(Statement("external_image"+srgb, fn))
else:
if not tex_node.use_mipmap:
tex_res.statements.append(Statement("mipmap_levels", 1))
srgb = "_srgb" if colorspace=='sRGB' else ""
tex_res.statements.append(Statement("external_image"+srgb, fn))
else: