diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-06 18:27:22 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-10-06 18:27:22 +0400 |
commit | 02158e4b98588d3175f188b9f4697aa0d1eb88a6 (patch) | |
tree | 6980207f2a908b90b92a03546f1a84008114948a /io_scene_obj | |
parent | f3070e7ed17bb2afa6037f259e853df9eb394101 (diff) |
Fix #28818: Error when trying to import obj
Fix #28816: Error when importing obj file with texture due to api change
Update obj importer and xcf importer to use new post-texface api.
Diffstat (limited to 'io_scene_obj')
-rw-r--r-- | io_scene_obj/import_obj.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/io_scene_obj/import_obj.py b/io_scene_obj/import_obj.py index 06304dea..1f7ab9b7 100644 --- a/io_scene_obj/import_obj.py +++ b/io_scene_obj/import_obj.py @@ -619,9 +619,8 @@ def create_mesh(new_objects, image, has_data = unique_material_images[context_material] if image: # Can be none if the material dosnt have an image. blender_tface.image = image - blender_tface.use_image = True if has_data and image.depth == 32: - blender_tface.blend_type = 'ALPHA' + blender_tface.alpha_blend = 'ALPHA' # BUG - Evil eekadoodle problem where faces that have vert index 0 location at 3 or 4 are shuffled. if len(face_vert_loc_indices) == 4: |