summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2015-02-09 21:09:17 -0300
committerJuan Linietsky <reduzio@gmail.com>2015-02-09 21:09:17 -0300
commitf24fca70abc1b0b1a62d327123ff533bef505d79 (patch)
treef5d8220f5c9e86459c925477708e349247822546
parent67d357191ff74b2cfc80015941363a97e7ee19fd (diff)
parent2c8cc632d2c04c88ae9a7fe28b2d99794c1abd56 (diff)
Merge pull request #1336 from slapin/exporter2
io_scene_dae: fixed invalid variable name
-rw-r--r--tools/export/blender25/io_scene_dae/export_dae.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/export/blender25/io_scene_dae/export_dae.py b/tools/export/blender25/io_scene_dae/export_dae.py
index 8161f05bf8..8e751fc33c 100644
--- a/tools/export/blender25/io_scene_dae/export_dae.py
+++ b/tools/export/blender25/io_scene_dae/export_dae.py
@@ -212,8 +212,8 @@ class DaeExporter:
imgid = self.new_id("image")
if (not os.path.isfile(imgpath)):
- if img_tmp_path.endswith((".bmp",".rgb",".png",".jpeg",".jpg",".jp2",".tga",".cin",".dpx",".exr",".hdr",".tif")):
- imgpath="images/"+os.path.basename(img_tmp_path)
+ if imgpath.endswith((".bmp",".rgb",".png",".jpeg",".jpg",".jp2",".tga",".cin",".dpx",".exr",".hdr",".tif")):
+ imgpath="images/"+os.path.basename(imgpath)
else:
imgpath="images/"+image.name+".png"