Skip to content

Commit

Permalink
Merge pull request #78 from set-killer/Issue/73
Browse files Browse the repository at this point in the history
Casting the image extension to tuple
  • Loading branch information
akien-mga authored Jul 22, 2018
2 parents ca75e9a + 68fef58 commit 9a8fae9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions io_scene_dae/export_dae.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,8 @@ def export_image(self, image):
imgpath = os.path.join("images", os.path.basename(imgpath))
else:
img_tmp_path = image.filepath
if img_tmp_path.lower().endswith(bpy.path.extensions_image):
if img_tmp_path.lower().endswith(
tuple(bpy.path.extensions_image)):
image.filepath = os.path.join(
basedir, os.path.basename(img_tmp_path))
else:
Expand Down Expand Up @@ -518,7 +519,7 @@ def export_mesh(self, node, armature=None, skeyindex=-1, skel_source=None,

if(self.config["use_exclude_armature_modifier"]):
armature_modifier = node.modifiers.get("Armature")

if(armature_modifier):
#doing this per object is inefficient, should be improved, maybe?
armature_poses = [arm.pose_position for arm in bpy.data.armatures]
Expand Down

0 comments on commit 9a8fae9

Please sign in to comment.