From 68fef58eae35ef92575a288ee151eb752be148de Mon Sep 17 00:00:00 2001 From: "N. D" Date: Tue, 10 Jul 2018 21:10:00 +0300 Subject: [PATCH] Casting the image extension to tuple --- io_scene_dae/export_dae.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/io_scene_dae/export_dae.py b/io_scene_dae/export_dae.py index ba87922..29d3bfc 100644 --- a/io_scene_dae/export_dae.py +++ b/io_scene_dae/export_dae.py @@ -186,7 +186,8 @@ class DaeExporter: 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: @@ -518,7 +519,7 @@ class DaeExporter: 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]