bake textures into 3d-coat works now

This commit is contained in:
Kalle-Samuli Riihikoski 2019-03-27 13:04:26 +02:00
parent d0aa840bff
commit 58453d7c29
1 changed files with 7 additions and 7 deletions

View File

@ -638,13 +638,13 @@ class SCENE_OT_export(bpy.types.Operator):
objekti.coat3D.applink_name = objekti.data.name
mod_mat_list = {}
if (coat3D.bake_textures):
bake_location = folder_objects + os.sep + 'Bake'
if (os.path.isdir(bake_location)):
shutil.rmtree(bake_location)
os.makedirs(bake_location)
else:
os.makedirs(bake_location)
bake_location = folder_objects + os.sep + 'Bake'
if (os.path.isdir(bake_location)):
shutil.rmtree(bake_location)
os.makedirs(bake_location)
else:
os.makedirs(bake_location)
temp_string = ''
for objekti in bpy.context.selected_objects: