ImportLDraw
ImportLDraw copied to clipboard
Fix light brick handling
This fixes an error where importing a light brick would cause a crash because 2.8 doesn't have bpy.data.lamps. This fix uses bpy.data.lights for 2.8 and keeps bpy.data.lamps for everything else.
@TobyLobster please consider having a look at this one 🙏
For anyone that requires the fixes from this pull, I have a fork with the applied changes and a release of the addon. Addon: https://github.com/BlenderAddonsArchive/ImportLDraw Release: https://github.com/BlenderAddonsArchive/ImportLDraw/releases/tag/1.1.12
Fixed