fix bpy.utils has no attribute previews

Importing bpy.utils.previews fix it
pull/5/head
Clément Ducarteron 2023-03-24 11:56:22 +01:00
parent 379ef0ad93
commit e5857afa7d
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import appdirs import appdirs
import bpy import bpy
import bpy.utils.previews
import os import os
from pathlib import Path from pathlib import Path
from tempfile import gettempdir from tempfile import gettempdir

View File

@ -61,6 +61,7 @@ def load_trackers():
print(e) print(e)
def load_tracker_prefs(): def load_tracker_prefs():
# FIXME Ça écrase les prefs à chaque quoi
prefs = get_addon_prefs() prefs = get_addon_prefs()
tracker_prefs_file = os.getenv('TRACKER_PREFS') tracker_prefs_file = os.getenv('TRACKER_PREFS')