From 89a2b70bdd06807403fdcba1c7e4504a797c2e02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vil=C3=A9m=20Duha?= Date: Sun, 6 Dec 2020 11:28:26 +0100 Subject: BlenderKit: enable 3-level categories for category reorganization. --- blenderkit/resolutions.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'blenderkit/resolutions.py') diff --git a/blenderkit/resolutions.py b/blenderkit/resolutions.py index 62118d7f..89ddb6d6 100644 --- a/blenderkit/resolutions.py +++ b/blenderkit/resolutions.py @@ -359,7 +359,8 @@ def unpack_asset(data): image.filepath = fp # bpy.path.abspath(fp) image.filepath_raw = fp # bpy.path.abspath(fp) image.save() - image.unpack(method='REMOVE') + if len(image.packed_files) > 0: + image.unpack(method='REMOVE') bpy.ops.wm.save_mainfile(compress=False) # now try to delete the .blend1 file -- cgit v1.2.3