Closed keianhzo closed 5 months ago
This PR adds support for custom user components directories.
The user can add multiple directories and the components found in those directories will be loaded at add-on load time.
We don't do hot reloading as it can get quite complex quickly and Blender already requires reload for it's own scripts paths AFAIK.
Required by https://github.com/MozillaReality/hubs-postprocessing-addon Closes https://github.com/MozillaReality/hubs-blender-exporter/issues/288
Oh, I just realized, when add/removing directories, the preferences should be marked dirty: context.preferences.is_dirty = True
context.preferences.is_dirty = True
This is for when the user has selected that preferences shouldn't auto-save.
This PR adds support for custom user components directories.
The user can add multiple directories and the components found in those directories will be loaded at add-on load time.
We don't do hot reloading as it can get quite complex quickly and Blender already requires reload for it's own scripts paths AFAIK.
Required by https://github.com/MozillaReality/hubs-postprocessing-addon Closes https://github.com/MozillaReality/hubs-blender-exporter/issues/288