io_scene_dae: fixed invalid variable name

This commit is contained in:
Segey Lapin 2015-02-03 23:21:31 +03:00
parent 67d357191f
commit 2c8cc632d2

View file

@ -212,8 +212,8 @@ class DaeExporter:
imgid = self.new_id("image") imgid = self.new_id("image")
if (not os.path.isfile(imgpath)): if (not os.path.isfile(imgpath)):
if img_tmp_path.endswith((".bmp",".rgb",".png",".jpeg",".jpg",".jp2",".tga",".cin",".dpx",".exr",".hdr",".tif")): if imgpath.endswith((".bmp",".rgb",".png",".jpeg",".jpg",".jp2",".tga",".cin",".dpx",".exr",".hdr",".tif")):
imgpath="images/"+os.path.basename(img_tmp_path) imgpath="images/"+os.path.basename(imgpath)
else: else:
imgpath="images/"+image.name+".png" imgpath="images/"+image.name+".png"