From 127ba6fcff3a825370c05dba46e7e2ebe5bb700c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Norgeot?= Date: Tue, 19 May 2020 11:31:28 +0200 Subject: [PATCH 1/3] [#D3D-5645] Fixes 'selection only' option for 2.79 --- addons/io_sketchfab_plugin/blender/blender_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/io_sketchfab_plugin/blender/blender_version.py b/addons/io_sketchfab_plugin/blender/blender_version.py index 668318c..0306ffc 100644 --- a/addons/io_sketchfab_plugin/blender/blender_version.py +++ b/addons/io_sketchfab_plugin/blender/blender_version.py @@ -26,7 +26,7 @@ def deselect(obj): # Visibility def get_visible(obj): if bpy.app.version < (2, 80, 0): - return obj.hide + return (not obj.hide) else: return obj.visible_get() def set_visible(obj, visible): From b8bb8bc167d3f2db6d36b7e92c90c25938e65164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Norgeot?= Date: Tue, 19 May 2020 11:32:07 +0200 Subject: [PATCH 2/3] [#D3D-5646] Fixes potential permission error --- addons/io_sketchfab_plugin/sketchfab/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/addons/io_sketchfab_plugin/sketchfab/__init__.py b/addons/io_sketchfab_plugin/sketchfab/__init__.py index bbf394b..995df40 100644 --- a/addons/io_sketchfab_plugin/sketchfab/__init__.py +++ b/addons/io_sketchfab_plugin/sketchfab/__init__.py @@ -235,7 +235,10 @@ def clean_node_hierarchy(objects): root.select_set(True) class Cache: - SKETCHFAB_CACHE_FILE = os.path.join(os.path.dirname(__file__), ".cache") + SKETCHFAB_CACHE_FILE = os.path.join( + bpy.utils.user_resource("SCRIPTS", "sketchfab_cache", create=True), + ".cache" + ) # Use a user path to avoid permission-related errors def read(): if not os.path.exists(Cache.SKETCHFAB_CACHE_FILE): From aeae646e6181bdea396cb75278456c612eb41049 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Norgeot?= Date: Tue, 19 May 2020 11:33:48 +0200 Subject: [PATCH 3/3] [#D3D-5646] Bumps version to 1.2.2 --- addons/io_sketchfab_plugin/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/io_sketchfab_plugin/__init__.py b/addons/io_sketchfab_plugin/__init__.py index db46508..0643a33 100644 --- a/addons/io_sketchfab_plugin/__init__.py +++ b/addons/io_sketchfab_plugin/__init__.py @@ -76,7 +76,7 @@ 'author': 'Sketchfab', 'license': 'GPL', 'deps': '', - 'version': (1, 2, 1), + 'version': (1, 2, 2), "blender": (2, 80, 0), 'location': 'View3D > Tools > Sketchfab', 'warning': '',