tex_name = p.texture.image.name+".tex2d"
if tex_name not in resources:
- resources[tex_name] = texture_export.export_texture(p.texture, p.tex_usage, invert_green=p.invert_green)
+ resources[tex_name] = texture_export.export_texture(p.texture, p.tex_channels)
samp_name = sampler_export.get_sampler_name(p.texture)
if samp_name not in resources: