remove rna functions image.get_export_path() and image.get_abs_filename(), filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image. obj export file copy was also not working because of a missing import.
This commit is contained in:
@@ -794,7 +794,7 @@ class x3d_class:
|
||||
pic = tex.image
|
||||
|
||||
# using .expandpath just in case, os.path may not expect //
|
||||
basename = os.path.basename(pic.get_abs_filename())
|
||||
basename = os.path.basename(bpy.utils.expandpath(pic.filename))
|
||||
|
||||
pic = alltextures[i].image
|
||||
# pic = alltextures[i].getImage()
|
||||
|
||||
Reference in New Issue
Block a user