lightfield-analysis / blender-addon

Blender Addon to render light fields with depth and disparity maps
116 stars 46 forks source link

blender 3.6 install error #15

Open AlexNorth365 opened 9 months ago

AlexNorth365 commented 9 months ago

Dear there.

My system is apple mac m1,my blender is 3.6. after installing and enabling it, I have the following error, looking forward to your reply!

Traceback (most recent call last): File "/Applications/Blender3.6.app/Contents/Resources/3.6/scripts/modules/addon_utils.py", line 333, in enable mod = import(module_name) File "/Users/cdy/Library/Application Support/Blender/3.6/scripts/addons/blender-addon-master/init.py", line 61, in class LFPropertyGroup(bpy.types.PropertyGroup): File "/Users/cdy/Library/Application Support/Blender/3.6/scripts/addons/blender-addon-master/init.py", line 176, in LFPropertyGroup default=updates.get_default_target_directory(), File "/Users/cdy/Library/Application Support/Blender/3.6/scripts/addons/blender-addon-master/updates.py", line 105, in get_default_target_directory path = os.path.join(bpy.context.user_preferences.filepaths.temporary_directory, 'lightfield') AttributeError: '_RestrictContext' object has no attribute 'user_preferences'

Max1Power commented 6 months ago

change _userpreferences to preferences in the file /scripts/addons/blender-addon-master/updates.py

path = os.path.join(bpy.context.preferences.filepaths.temporary_directory, 'lightfield')

PisCes318 commented 6 months ago

Can blender3.6 be used?