Using string.format for image path name generation

This commit is contained in:
N. D
2016-07-20 10:39:33 +03:00
committed by N. D
parent 180b666b54
commit 31e70b40a8

View File

@@ -191,7 +191,7 @@ class DaeExporter:
if img_tmp_path.lower().endswith(bpy.path.extensions_image):
image.filepath = os.path.join(basedir, os.path.basename(img_tmp_path))
else:
image.filepath = os.path.join(basedir, image.name + ".png")
image.filepath = os.path.join(basedir, "{}.png".format(image.name))
dstfile = os.path.join(basedir, os.path.basename(image.filepath))