Merge pull request #2248 from romulox-x/colladaImagePath
fixed image path problem in bettercollada
This commit is contained in:
commit
ed85339bcb
|
@ -190,7 +190,7 @@ class DaeExporter:
|
||||||
|
|
||||||
if (not os.path.isfile(dstfile)):
|
if (not os.path.isfile(dstfile)):
|
||||||
shutil.copy(imgpath,dstfile)
|
shutil.copy(imgpath,dstfile)
|
||||||
imgpath="images/"+os.path.basename(imgpath)
|
imgpath="images/"+os.path.basename(imgpath)
|
||||||
else:
|
else:
|
||||||
### if file is not found save it as png file in the destination folder
|
### if file is not found save it as png file in the destination folder
|
||||||
img_tmp_path = image.filepath
|
img_tmp_path = image.filepath
|
||||||
|
@ -204,7 +204,7 @@ class DaeExporter:
|
||||||
if (not os.path.isfile(dstfile)):
|
if (not os.path.isfile(dstfile)):
|
||||||
|
|
||||||
image.save()
|
image.save()
|
||||||
imgpath="images/"+os.path.basename(image.filepath)
|
imgpath="images/"+os.path.basename(image.filepath)
|
||||||
image.filepath = img_tmp_path
|
image.filepath = img_tmp_path
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue