eliemichel / LilySurfaceScraper

Import shaders end environments in Blender from a single URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blender 4.0 Color Space changes

Tiefseetauchner opened this issue · comments

commented

When using Blender 4.0, the color space name calculation is incorrect. There is no Colorspace named "linear" anymore, the default is now "Linear Rec.709". This logic is problematic in the first place, but I can't think of a better way to solve it except getting a Blender version with bpy.app.version and using that in a list to figure out what should be used with a semver capable system (i.e. taking the closest previously compatible version). I can however see how that'd be unwanted behaviour but I frankly think it's the best solution. PR coming soon unless there's a veto, as I love and require this addin to function <3

Fixed by #244 thanks!