-
Notifications
You must be signed in to change notification settings - Fork 58
Description
I tried to use the package osgexport-0.14.2 with blender v2.92, but I have an error due to USER_PREFERENCES which had changed in PREFERENCES. Moreover, in the add-ons windows in preferences, the message "Upgrade to 2.8x required" is mentionned.
below the error message I had
Traceback (most recent call last):
File "C:\Users\blender-2.92.0-windows64\blender-2.92.0-windows64\2.92\scripts\modules\addon_utils.py", line 351, in enable
mod = import(module_name)
File "C:\Users\AppData\Roaming\Blender Foundation\Blender\2.92\scripts\addons\osg_init_.py", line 46, in
BlenderExporterDir = os.getenv("BlenderExporter", os.path.join(bpy.context.user_preferences.filepaths.script_directory,"blenderExporter"))
AttributeError: '_RestrictContext' object has no attribute 'user_preferences'
I changed USER_PREFERENCES by PREFERENCES in the init.py file, but nothing append and the problem was not resolved.
What can I change to resolve the problem?