HDRI-lighting-Shortcut icon indicating copy to clipboard operation
HDRI-lighting-Shortcut copied to clipboard

Add-on revised for Blender 2.80

Open Harvester62 opened this issue 6 years ago • 2 comments

Hi Nikos, I know this is possibly not the correct way to make a proposal to update your great add-on, but I am not a programmer with collaborative experience on GitHub, so I find easier to submit this as a fake bug report, attaching the init.py file duly corrected to work with Blender 2.80.

I would like you to review it and eventually update your main branch.

For your information this is what I changed in your script:

  • Lines 27, 28, 29: updated for Blender 2.80 and raised the version number, removed apri reference
  • Line 581: corrected keyword argument
  • Lines 623, 628, 629, 695, 696: corrected bpy.context.user_preferences to bpy.context.preferences
  • 705-719: added annotations trick fix
  • 721-738: changed the way to register classes

It activates in the Preferences, it finds the specified folder for HDRIs, and all the controls are displayed correctly in the World panel. Hope this helps.

Best regards, Riccardo Giovanetti (Harverster)

init.zip

Harvester62 avatar Sep 12 '19 09:09 Harvester62

Hi ! I I am so so sorry ! I've just seen your post ! I have been away from github for a long time ! Thank you so much for your hard work on the addon ! I will make the update of the script and make sure to add your name in it ! Thanks again and have a great day !

Nikos-Prinios avatar Jun 12 '21 11:06 Nikos-Prinios

Don't worry, Nikos, I hope the fix still works with the current 2.93 LTS version of Blender. Haven't checked it yet. Kind regards.

Harvester62 avatar Jun 12 '21 17:06 Harvester62