From e5857afa7de313e85228998eec3cadd375770deb Mon Sep 17 00:00:00 2001 From: Clement Ducarteron Date: Fri, 24 Mar 2023 11:56:22 +0100 Subject: [PATCH] fix bpy.utils has no attribute previews Importing bpy.utils.previews fix it --- constants.py | 1 + preferences.py | 1 + 2 files changed, 2 insertions(+) diff --git a/constants.py b/constants.py index 1db816b..69833c9 100644 --- a/constants.py +++ b/constants.py @@ -1,5 +1,6 @@ import appdirs import bpy +import bpy.utils.previews import os from pathlib import Path from tempfile import gettempdir diff --git a/preferences.py b/preferences.py index 98bfffa..0de7be4 100644 --- a/preferences.py +++ b/preferences.py @@ -61,6 +61,7 @@ def load_trackers(): print(e) def load_tracker_prefs(): + # FIXME Ça écrase les prefs à chaque quoi prefs = get_addon_prefs() tracker_prefs_file = os.getenv('TRACKER_PREFS')