diff options
Diffstat (limited to 'blenderkit/autothumb_material_bg.py')
-rw-r--r-- | blenderkit/autothumb_material_bg.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/blenderkit/autothumb_material_bg.py b/blenderkit/autothumb_material_bg.py index 50e8aa4b..37d7c783 100644 --- a/blenderkit/autothumb_material_bg.py +++ b/blenderkit/autothumb_material_bg.py @@ -50,6 +50,10 @@ if __name__ == "__main__": if data.get('do_download'): #need to save the file, so that asset doesn't get downloaded into addon directory temp_blend_path = os.path.join(data['tempdir'], 'temp.blend') + + # if this isn't here, blender crashes. + bpy.context.preferences.filepaths.file_preview_type = 'NONE' + bpy.ops.wm.save_as_mainfile(filepath=temp_blend_path) asset_data = data['asset_data'] |