JacquesLucke / blender_vscode

Visual Studio Code extension for Blender development.
MIT License
572 stars 75 forks source link

Add support for developing Blender 4.2 extensions as well as legacy addons #164

Closed strike-digital closed 3 months ago

strike-digital commented 3 months ago

This adds support for automatically detecting whether an addon is an extension, and if it is, installing as one instead of as a legacy addon.

Main changes:

If an addon is not an extension, or if the Blender version is lower than 4.2, it will just be treated as a normal addon.

JacquesLucke commented 3 months ago

Would you be interested in improving the experience for creating a new Blender extension? Maybe it's as simple as adding a new entry in getNewAddonGenerator with a new template (+ maybe rename the existing templates). Maybe the auto-load functionality has to be improved for Blender 4.2 too.

https://twitter.com/CGSebSciFi/status/1800505001036730668

strike-digital commented 3 months ago

Yeah, definitely, I'll give that a shot 👍

strike-digital commented 3 months ago

Oh also, I was wondering about auto formatting the python code? Currently, it doesn't comply with PEP8 at all, and my editor likes to complain about it. I'd probably use black with default settings, except for a longer line limit, as it's pretty standardised.

If I open another pull request for it, is it likely to get merged?

JacquesLucke commented 3 months ago

I'm fine with improving the formatting. Using black seems ok. Ideally, the code is simplified so far that it is formatted the same by different formatters, but it's nice to be consistent with at least one popular one.

strike-digital commented 3 months ago

Hi, I saw you sent a message about creating a release, but the notification disappeared from windows and I can't seem to find it on the website. Every day the urge to move to linux grows stronger😅

From what I saw, it was whether I was going to make any more pull requests before the extension should be released? In that case, I was just going to make one for the formatting, but since that shouldn't change any functionality it should be ok?

JacquesLucke commented 3 months ago

I sent it as a private message on Blender Chat. You should be able to see it there, but thx for letting me know here.

strike-digital commented 3 months ago

Ah that explains it, thanks!