diff options
author | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2019-09-16 17:26:17 +0300 |
---|---|---|
committer | Kalle-Samuli Riihikoski <haikalle@gmail.com> | 2019-09-16 17:27:14 +0300 |
commit | af59031f6eca941023d95c7d0c2e1df24378feb9 (patch) | |
tree | 672c85ccd820175c3fca38c1fc5916e10551fb8e /io_coat3D | |
parent | 541840f949d279e4c9ef7ec06d3aeed7ed29530c (diff) |
Support for 2.81
Diffstat (limited to 'io_coat3D')
-rw-r--r-- | io_coat3D/tex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_coat3D/tex.py b/io_coat3D/tex.py index 2473cf47..fd2e893e 100644 --- a/io_coat3D/tex.py +++ b/io_coat3D/tex.py @@ -482,7 +482,7 @@ def createnodes(active_mat,texcoat, create_group_node, tile_list, objekti, ind, # READ DATA.JSON FILE - json_address = os.path.dirname(bpy.app.binary_path) + os.sep + '2.80' + os.sep + 'scripts' + os.sep + 'addons' + os.sep + 'io_coat3D' + os.sep + 'data.json' + json_address = os.path.dirname(bpy.app.binary_path) + os.sep + str(bpy.app.version[0]) + '.' + str(bpy.app.version[1]) + os.sep + 'scripts' + os.sep + 'addons' + os.sep + 'io_coat3D' + os.sep + 'data.json' with open(json_address, encoding='utf-8') as data_file: data = json.loads(data_file.read()) |