diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2019-03-27 14:04:26 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2019-03-27 14:04:26 +0300 |
commit | 58453d7c29ce2562d57bcf9b4c5a163dd6a0ffd2 (patch) | |
tree | 2957f6990b14d01b71ec88cfdb49a26cc59d4ae9 /io_coat3D | |
parent | d0aa840bff2c7007d7f8595fa5f0475f9872e3f0 (diff) |
bake textures into 3d-coat works now
Diffstat (limited to 'io_coat3D')
-rw-r--r-- | io_coat3D/__init__.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/io_coat3D/__init__.py b/io_coat3D/__init__.py index 472867ec..e0fe76b1 100644 --- a/io_coat3D/__init__.py +++ b/io_coat3D/__init__.py @@ -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: |