mirror of
https://github.com/godotengine/collada-exporter.git
synced 2026-01-01 01:48:22 +03:00
when copy images enabled, 'images' path prefix was only being written to file if the destination file didn't exist. so it only worked the first time.
This commit is contained in:
@@ -190,7 +190,7 @@ class DaeExporter:
|
||||
|
||||
if (not os.path.isfile(dstfile)):
|
||||
shutil.copy(imgpath,dstfile)
|
||||
imgpath="images/"+os.path.basename(imgpath)
|
||||
imgpath="images/"+os.path.basename(imgpath)
|
||||
else:
|
||||
### if file is not found save it as png file in the destination folder
|
||||
img_tmp_path = image.filepath
|
||||
@@ -204,7 +204,7 @@ class DaeExporter:
|
||||
if (not os.path.isfile(dstfile)):
|
||||
|
||||
image.save()
|
||||
imgpath="images/"+os.path.basename(image.filepath)
|
||||
imgpath="images/"+os.path.basename(image.filepath)
|
||||
image.filepath = img_tmp_path
|
||||
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user