Skip to content
Snippets Groups Projects
Commit 081c87ec authored by Campbell Barton's avatar Campbell Barton
Browse files

fix for api change with importer

parent d8671695
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_
has_data = False
image_depth = 0
if image:
if image is not None:
texture.image = image
# note, this causes the image to load, see: [#32637]
# which makes the following has_data work as expected.
......@@ -108,7 +108,8 @@ def create_materials(filepath, material_libs, unique_materials, unique_material_
texture.use_mipmap = True
texture.use_interpolation = True
texture.use_alpha = True
if image is not None:
image.use_alpha = True
blender_material.use_transparency = True
if "alpha" not in context_material_vars:
blender_material.alpha = 0.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment